diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 14:30:47 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-20 09:16:54 +0000 |
commit | a93e754c36f27508a233011871fba2150553f90c (patch) | |
tree | 3ff9bda1d1ea8cd9f9e88b6e11330b44065c43b7 /src/southbridge/amd/agesa/hudson/hudson.c | |
parent | ddfccb4b9a6ead49ba8482ccafa432dd229cc9be (diff) | |
download | coreboot-a93e754c36f27508a233011871fba2150553f90c.tar.xz |
sb/amd/agesa/hudson: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I85aafdc204731734ba4f02551ba5ccdd6535df77
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26408
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/amd/agesa/hudson/hudson.c')
-rw-r--r-- | src/southbridge/amd/agesa/hudson/hudson.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/southbridge/amd/agesa/hudson/hudson.c b/src/southbridge/amd/agesa/hudson/hudson.c index 9a6df61dba..eb8ae52193 100644 --- a/src/southbridge/amd/agesa/hudson/hudson.c +++ b/src/southbridge/amd/agesa/hudson/hudson.c @@ -77,14 +77,15 @@ static void hudson_disable_usb(u8 disable) pm_write8(PM_REG_USB_ENABLE, reg8); } -void hudson_enable(device_t dev) +void hudson_enable(struct device *dev) { printk(BIOS_DEBUG, "hudson_enable()\n"); switch (dev->path.pci.devfn) { case PCI_DEVFN(0x14, 5): if (dev->enabled == 0) { // read the VENDEV ID - device_t usb_dev = dev_find_slot( 0, PCI_DEVFN( 0x14, 5)); + struct device *usb_dev = + dev_find_slot( 0, PCI_DEVFN( 0x14, 5)); u32 usb_device_id = pci_read_config32(usb_dev, 0) >> 16; u8 reg8; if (usb_device_id == PCI_DEVICE_ID_AMD_SB900_USB_20_5) { @@ -99,7 +100,8 @@ void hudson_enable(device_t dev) case PCI_DEVFN(0x14, 7): if (dev->enabled == 0) { // read the VENDEV ID - device_t sd_dev = dev_find_slot( 0, PCI_DEVFN( 0x14, 7)); + struct device *sd_dev = + dev_find_slot( 0, PCI_DEVFN( 0x14, 7)); u32 sd_device_id = pci_read_config32( sd_dev, 0) >> 16; /* turn off the SDHC controller in the PM reg */ u8 reg8; |