diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 16:49:20 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-20 09:08:28 +0000 |
commit | 1a4abb73cdeae498e1470d273fee7cc1f35912e7 (patch) | |
tree | 2a1cdaca55a4e67439ac6be3354ca2a7bc120985 /src/southbridge/amd/cimx/sb800/late.c | |
parent | 4a027e6e95665f2c7cb9297c04d60e1b58b815b2 (diff) | |
download | coreboot-1a4abb73cdeae498e1470d273fee7cc1f35912e7.tar.xz |
sb/amd/cimx/sb800: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I2335b7e193663bb6c82bf267aaeb0b2367986f62
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26414
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/cimx/sb800/late.c')
-rw-r--r-- | src/southbridge/amd/cimx/sb800/late.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/southbridge/amd/cimx/sb800/late.c b/src/southbridge/amd/cimx/sb800/late.c index 393eda0090..fb5dadd7df 100644 --- a/src/southbridge/amd/cimx/sb800/late.c +++ b/src/southbridge/amd/cimx/sb800/late.c @@ -15,7 +15,7 @@ */ -#include <device/device.h> /* device_t */ +#include <device/device.h> #include <device/pci.h> /* device_operations */ #include <device/pci_ids.h> #include <bootstate.h> @@ -118,7 +118,7 @@ static struct pci_operations lops_pci = { .set_subsystem = pci_dev_set_subsystem, }; -static void lpc_init(device_t dev) +static void lpc_init(struct device *dev) { printk(BIOS_DEBUG, "SB800 - Late.c - lpc_init - Start.\n"); @@ -344,7 +344,7 @@ BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_ENTRY, set_pci_irqs, NULL); /** * @brief SB Cimx entry point sbBeforePciInit wrapper */ -static void sb800_enable(device_t dev) +static void sb800_enable(struct device *dev) { struct southbridge_amd_cimx_sb800_config *sb_chip = (struct southbridge_amd_cimx_sb800_config *)(dev->chip_info); @@ -427,7 +427,7 @@ static void sb800_enable(device_t dev) case (0x15 << 3) | 0: /* 0:15:0 PCIe PortA */ { - device_t device; + struct device *device; for (device = dev; device; device = device->sibling) { if ((device->path.pci.devfn & ~3) != PCI_DEVFN(0x15,0)) break; sb_config->PORTCONFIG[device->path.pci.devfn & 3].PortCfg.PortPresent = device->enabled; |