diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-22 10:52:05 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-23 09:56:59 +0000 |
commit | 777ccd43961c002baebd52d986f5e49b0d7bc7f8 (patch) | |
tree | 3042c3cb2c4c5663b2e6c5fe5b10c9915abe4844 /src/soc/amd/stoneyridge/lpc.c | |
parent | 532001ae73529d23878021129484c5bc3f24fed5 (diff) |
soc/amd/stoneyridge/: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I84fbc90b2a81fe5476d659716f0d6e4f0d7e1de2
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26458
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Diffstat (limited to 'src/soc/amd/stoneyridge/lpc.c')
-rw-r--r-- | src/soc/amd/stoneyridge/lpc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/soc/amd/stoneyridge/lpc.c b/src/soc/amd/stoneyridge/lpc.c index eb512817b6..4bf5a4f1b4 100644 --- a/src/soc/amd/stoneyridge/lpc.c +++ b/src/soc/amd/stoneyridge/lpc.c @@ -34,11 +34,11 @@ #include <soc/southbridge.h> #include <soc/nvs.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 @@ -108,7 +108,7 @@ static void lpc_init(device_t dev) pm_write8(PM_SERIRQ_CONF, byte); } -static void lpc_read_resources(device_t dev) +static void lpc_read_resources(struct device *dev) { struct resource *res; global_nvs_t *gnvs; @@ -165,7 +165,7 @@ static void lpc_set_resources(struct device *dev) pci_dev_set_resources(dev); } -static void set_child_resource(device_t child, +static void set_child_resource(struct device *child, u32 *reg, u32 *reg_x) { @@ -299,7 +299,7 @@ static void set_child_resource(device_t child, * @param dev the device whose children's resources are to be enabled * */ -static void lpc_enable_childrens_resources(device_t dev) +static void lpc_enable_childrens_resources(struct device *dev) { struct bus *link; u32 reg, reg_x; @@ -308,7 +308,7 @@ static void lpc_enable_childrens_resources(device_t dev) reg_x = pci_read_config32(dev, LPC_IO_OR_MEM_DECODE_ENABLE); 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 @@ -323,7 +323,7 @@ static void lpc_enable_childrens_resources(device_t dev) pci_write_config32(dev, LPC_IO_OR_MEM_DECODE_ENABLE, reg_x); } -static void lpc_enable_resources(device_t dev) +static void lpc_enable_resources(struct device *dev) { pci_dev_enable_resources(dev); lpc_enable_childrens_resources(dev); |