From d0f3e17bfed7f5a28b26fcf06abf3ff4b666e687 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sat, 19 May 2018 14:56:13 +0200 Subject: sb/amd/amd8132: Get rid of device_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use of device_t has been abandoned in ramstage. Change-Id: Ia4be6e9b81fe4627d84c9ed7589a3e6ef2bcede2 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26411 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/southbridge/amd/amd8132/bridge.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/southbridge/amd/amd8132') diff --git a/src/southbridge/amd/amd8132/bridge.c b/src/southbridge/amd/amd8132/bridge.c index b546ef3c27..52306ab697 100644 --- a/src/southbridge/amd/amd8132/bridge.c +++ b/src/southbridge/amd/amd8132/bridge.c @@ -29,9 +29,9 @@ #define NPUMB 0xD8 /* Non prefetchable upper memory base */ static void amd8132_walk_children(struct bus *bus, - void (*visit)(device_t dev, void *ptr), void *ptr) + void (*visit)(struct device *dev, void *ptr), void *ptr) { - device_t child; + struct device *child; for (child = bus->children; child; child = child->sibling) { if (child->path.type != DEVICE_PATH_PCI) { continue; @@ -50,7 +50,7 @@ struct amd8132_bus_info { int max_func; }; -static void amd8132_count_dev(device_t dev, void *ptr) +static void amd8132_count_dev(struct device *dev, void *ptr) { struct amd8132_bus_info *info = ptr; /* Don't count pci bridges */ @@ -63,7 +63,7 @@ static void amd8132_count_dev(device_t dev, void *ptr) } -static void amd8132_pcix_tune_dev(device_t dev, void *ptr) +static void amd8132_pcix_tune_dev(struct device *dev, void *ptr) { struct amd8132_bus_info *info = ptr; unsigned cap; @@ -189,13 +189,13 @@ static void amd8132_scan_bus(struct bus *bus, amd8132_walk_children(bus, amd8132_pcix_tune_dev, &info); } -static void amd8132_scan_bridge(device_t dev) +static void amd8132_scan_bridge(struct device *dev) { do_pci_scan_bridge(dev, amd8132_scan_bus); } -static void amd8132_pcix_init(device_t dev) +static void amd8132_pcix_init(struct device *dev) { uint32_t dword; uint8_t byte; @@ -354,7 +354,7 @@ static const struct pci_driver pcix_driver __pci_driver = { .device = 0x7458, }; -static void ioapic_enable(device_t dev) +static void ioapic_enable(struct device *dev) { uint32_t value; @@ -366,7 +366,7 @@ static void ioapic_enable(device_t dev) } pci_write_config32(dev, 0x44, value); } -static void amd8132_ioapic_init(device_t dev) +static void amd8132_ioapic_init(struct device *dev) { uint32_t dword; unsigned chip_rev; -- cgit v1.2.3