From f854822fe0ad25d022648284a7de9aa9f25d7bd1 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sat, 19 May 2018 14:53:07 +0200 Subject: sb/amd/amd8131: 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: Iac87af2f1a1e331fee70b89548a0d6bbc5839ea0 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26410 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/southbridge/amd/amd8131/bridge.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/southbridge/amd') diff --git a/src/southbridge/amd/amd8131/bridge.c b/src/southbridge/amd/amd8131/bridge.c index 07f4a6ad6d..c97fba8af3 100644 --- a/src/southbridge/amd/amd8131/bridge.c +++ b/src/southbridge/amd/amd8131/bridge.c @@ -16,9 +16,9 @@ #define NPUMB 0xD8 /* Non prefetchable upper memory base */ static void amd8131_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; @@ -38,7 +38,7 @@ struct amd8131_bus_info { int max_func; }; -static void amd8131_count_dev(device_t dev, void *ptr) +static void amd8131_count_dev(struct device *dev, void *ptr) { struct amd8131_bus_info *info = ptr; /* Don't count pci bridges */ @@ -51,14 +51,14 @@ static void amd8131_count_dev(device_t dev, void *ptr) } -static void amd8131_pcix_tune_dev(device_t dev, void *ptr) +static void amd8131_pcix_tune_dev(struct device *dev, void *ptr) { struct amd8131_bus_info *info = ptr; unsigned cap; unsigned status, cmd, orig_cmd; unsigned max_read, max_tran; int sib_funcs, sibs; - device_t sib; + struct device *sib; if (dev->hdr_type != PCI_HEADER_TYPE_NORMAL) { return; @@ -264,13 +264,13 @@ static void amd8131_scan_bus(struct bus *bus, } } -static void amd8131_scan_bridge(device_t dev) +static void amd8131_scan_bridge(struct device *dev) { do_pci_scan_bridge(dev, amd8131_scan_bus); } -static void amd8131_pcix_init(device_t dev) +static void amd8131_pcix_init(struct device *dev) { uint32_t dword; uint16_t word; @@ -395,7 +395,7 @@ static const struct pci_driver pcix_driver __pci_driver = { }; -static void ioapic_enable(device_t dev) +static void ioapic_enable(struct device *dev) { uint32_t value; -- cgit v1.2.3