aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd/pi/hudson/hudson.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 17:08:23 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-20 09:10:46 +0000
commitd9ef546269e04e4ba4a8b350cee78fa50e67fec3 (patch)
treeee303f75364348ca8d1309acaa92a31a03c4a537 /src/southbridge/amd/pi/hudson/hudson.c
parent1a4abb73cdeae498e1470d273fee7cc1f35912e7 (diff)
sb/amd/pi/hudson: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Iace820ad788fde7b230f63d95543470ce925b451 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26417 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/pi/hudson/hudson.c')
-rw-r--r--src/southbridge/amd/pi/hudson/hudson.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/southbridge/amd/pi/hudson/hudson.c b/src/southbridge/amd/pi/hudson/hudson.c
index e306836736..a1c805dea1 100644
--- a/src/southbridge/amd/pi/hudson/hudson.c
+++ b/src/southbridge/amd/pi/hudson/hudson.c
@@ -55,14 +55,15 @@ u16 pm_read16(u16 reg)
return read16((void *)(PM_MMIO_BASE + reg));
}
-void hudson_enable(device_t dev)
+void hudson_enable(struct device *dev)
{
printk(BIOS_DEBUG, "hudson_enable()\n");
switch (dev->path.pci.devfn) {
case (0x14 << 3) | 7: /* 0:14.7 SD */
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;