aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/lpc/lpc.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-09-16 17:35:48 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-09-18 10:49:06 +0000
commit4a13126393150d99fbf930550f28e9c693f4bad3 (patch)
tree6c675870f27ef5690ba81ad2f1f7bafe46d94f64 /src/soc/intel/common/block/lpc/lpc.c
parente1e455bc96063b61ef97bd7894b0f38bd81f3941 (diff)
soc/intel/common/block: Don't use device_t in ramstage
Use of device_t has been abandoned in ramstage. Change-Id: If2d643eafea854563f56a7f867b7b492b6d09a19 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28631 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/common/block/lpc/lpc.c')
-rw-r--r--src/soc/intel/common/block/lpc/lpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/common/block/lpc/lpc.c b/src/soc/intel/common/block/lpc/lpc.c
index c462d9daa0..ef8417a195 100644
--- a/src/soc/intel/common/block/lpc/lpc.c
+++ b/src/soc/intel/common/block/lpc/lpc.c
@@ -46,7 +46,7 @@ void pch_lpc_add_new_resource(struct device *dev, uint8_t offset,
res->flags = flags;
}
-static void pch_lpc_add_io_resources(device_t dev)
+static void pch_lpc_add_io_resources(struct device *dev)
{
/* Add the default claimed legacy IO range for the LPC device. */
pch_lpc_add_new_resource(dev, 0, 0, 0x1000, IORESOURCE_IO |
@@ -56,7 +56,7 @@ static void pch_lpc_add_io_resources(device_t dev)
pch_lpc_soc_fill_io_resources(dev);
}
-static void pch_lpc_read_resources(device_t dev)
+static void pch_lpc_read_resources(struct device *dev)
{
/* Get the PCI resources of this device. */
pci_dev_read_resources(dev);
@@ -101,7 +101,7 @@ static void pch_lpc_set_child_resources(struct device *dev)
}
}
-static void pch_lpc_set_resources(device_t dev)
+static void pch_lpc_set_resources(struct device *dev)
{
pci_dev_set_resources(dev);