diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 12:33:01 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-21 20:01:33 +0000 |
commit | 315b239c3578a1448796ba5901bf1023c511207c (patch) | |
tree | 268562b3f52fc085b3c77c7cb74e903ffd927f55 /src/southbridge/amd/sb800/lpc.c | |
parent | f29a6898ec10459e49c9380b9b342e6ee633a6ce (diff) |
sb/amd/sb800: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: Ie48b42cf2999df075e23dc8ba185934b4e600157
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26405
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/sb800/lpc.c')
-rw-r--r-- | src/southbridge/amd/sb800/lpc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/southbridge/amd/sb800/lpc.c b/src/southbridge/amd/sb800/lpc.c index f15fed366a..3bbf823ddb 100644 --- a/src/southbridge/amd/sb800/lpc.c +++ b/src/southbridge/amd/sb800/lpc.c @@ -28,11 +28,11 @@ #include <arch/acpi.h> #include "sb800.h" -static void lpc_init(device_t dev) +static void lpc_init(struct device *dev) { u8 byte; u32 dword; - device_t sm_dev; + struct device *sm_dev; /* Enable the LPC Controller */ sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0)); @@ -73,7 +73,7 @@ static void lpc_init(device_t dev) setup_i8254(); /* Initialize i8254 timers */ } -static void sb800_lpc_read_resources(device_t dev) +static void sb800_lpc_read_resources(struct device *dev) { struct resource *res; @@ -121,7 +121,7 @@ static void sb800_lpc_set_resources(struct device *dev) * @param dev the device whose children's resources are to be enabled * */ -static void sb800_lpc_enable_childrens_resources(device_t dev) +static void sb800_lpc_enable_childrens_resources(struct device *dev) { struct bus *link; u32 reg, reg_x; @@ -133,7 +133,7 @@ static void sb800_lpc_enable_childrens_resources(device_t dev) reg_x = pci_read_config32(dev, 0x48); for (link = dev->link_list; link; link = link->next) { - device_t child; + struct device *child; for (child = link->children; child; child = child->sibling) { if (child->enabled @@ -232,7 +232,7 @@ static void sb800_lpc_enable_childrens_resources(device_t dev) pci_write_config8(dev, 0x74, wiosize); } -static void sb800_lpc_enable_resources(device_t dev) +static void sb800_lpc_enable_resources(struct device *dev) { pci_dev_enable_resources(dev); sb800_lpc_enable_childrens_resources(dev); |