diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-27 17:40:58 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-04 02:36:19 +0000 |
commit | 2ec4183c3c93728e5f94e57fe1d10d72843ca7ec (patch) | |
tree | 97c0934bc174e1407a61b1f57f6c2388925e6c4a /src/soc/intel/denverton_ns/lpc.c | |
parent | 143fb46d47f8450d91820cf8f5ec6d9f524e8e49 (diff) | |
download | coreboot-2ec4183c3c93728e5f94e57fe1d10d72843ca7ec.tar.xz |
soc/intel/denverton_ns: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I15e624b40d11f61a3870a6083be82d062690498d
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26587
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/soc/intel/denverton_ns/lpc.c')
-rw-r--r-- | src/soc/intel/denverton_ns/lpc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/soc/intel/denverton_ns/lpc.c b/src/soc/intel/denverton_ns/lpc.c index 1ac0961a05..0e1a95de45 100644 --- a/src/soc/intel/denverton_ns/lpc.c +++ b/src/soc/intel/denverton_ns/lpc.c @@ -85,9 +85,9 @@ static void pch_enable_ioapic(struct device *dev) * 0x80 - The PIRQ is not routed. */ -static void pch_pirq_init(device_t dev) +static void pch_pirq_init(struct device *dev) { - device_t irq_dev; + struct device *irq_dev; /* Get the chip configuration */ config_t *config = dev->chip_info; @@ -178,7 +178,7 @@ static void pch_pirq_init(device_t dev) } } -static void pci_p2sb_read_resources(device_t dev) +static void pci_p2sb_read_resources(struct device *dev) { struct resource *res; @@ -236,9 +236,9 @@ static void lpc_init(struct device *dev) pch_pirq_init(dev); } -static void pch_lpc_add_mmio_resources(device_t dev) { /* TODO */ } +static void pch_lpc_add_mmio_resources(struct device *dev) { /* TODO */ } -static void pch_lpc_add_io_resources(device_t dev) +static void pch_lpc_add_io_resources(struct device *dev) { struct resource *res; u8 io_index = 0; @@ -257,7 +257,7 @@ static void pch_lpc_add_io_resources(device_t dev) IORESOURCE_ASSIGNED | IORESOURCE_FIXED; } -static void lpc_read_resources(device_t dev) +static void lpc_read_resources(struct device *dev) { /* Get the normal PCI resources of this device. */ pci_dev_read_resources(dev); @@ -274,7 +274,7 @@ static void lpc_read_resources(device_t dev) static void pch_decode_init(struct device *dev) { /* TODO */ } -static void lpc_enable_resources(device_t dev) +static void lpc_enable_resources(struct device *dev) { pch_decode_init(dev); pci_dev_enable_resources(dev); @@ -283,7 +283,7 @@ static void lpc_enable_resources(device_t dev) /* Set bit in Function Disable register to hide this device */ static void pch_hide_devfn(uint32_t devfn) { /* TODO */ } -void southcluster_enable_dev(device_t dev) +void southcluster_enable_dev(struct device *dev) { u32 reg32; |