diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 12:11:29 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-22 07:17:35 +0000 |
commit | e490a87582fdd7b5df3da3d2211117d179e8d19d (patch) | |
tree | b30576b64065dc75a51f870f17dcfb3cc6378fdd /src/southbridge/broadcom/bcm5785/ide.c | |
parent | 86c92ba0422a7075af2f0f1e6da791fc0c6f7aad (diff) |
sb/broadcom/bcm5785: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: Ia39347f9d07bb0055ea4686a8b319f323f68062e
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26403
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/southbridge/broadcom/bcm5785/ide.c')
-rw-r--r-- | src/southbridge/broadcom/bcm5785/ide.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/southbridge/broadcom/bcm5785/ide.c b/src/southbridge/broadcom/bcm5785/ide.c index a6bb20421c..9dd06042eb 100644 --- a/src/southbridge/broadcom/bcm5785/ide.c +++ b/src/southbridge/broadcom/bcm5785/ide.c @@ -21,7 +21,7 @@ #include <device/pci_ops.h> #include "bcm5785.h" -static void bcm5785_ide_read_resources(device_t dev) +static void bcm5785_ide_read_resources(struct device *dev) { /* Get the normal pci resources of this device */ pci_dev_read_resources(dev); @@ -36,7 +36,8 @@ static void ide_init(struct device *dev) { } -static void lpci_set_subsystem(device_t dev, unsigned vendor, unsigned device) +static void lpci_set_subsystem(struct device *dev, unsigned vendor, + unsigned device) { pci_write_config32(dev, 0x40, ((device & 0xffff) << 16) | (vendor & 0xffff)); |