summaryrefslogtreecommitdiff
path: root/src/southbridge/sis/sis966/sis966.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 10:48:00 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 20:27:20 +0000
commit1c56f2fe77ea9fb30f277e08a40245b0751471bd (patch)
tree35086b509f8d34132ea02d4bae252427263d0b17 /src/southbridge/sis/sis966/sis966.c
parent1df39c3aca25bd6822bbd1c3146a4880f9fe2620 (diff)
sb/sis/sis966: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I6002949fa90a46a2dd0e3519acbf2606bb679322 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26398 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/sis/sis966/sis966.c')
-rw-r--r--src/southbridge/sis/sis966/sis966.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/southbridge/sis/sis966/sis966.c b/src/southbridge/sis/sis966/sis966.c
index cba4898925..3b1b564816 100644
--- a/src/southbridge/sis/sis966/sis966.c
+++ b/src/southbridge/sis/sis966/sis966.c
@@ -31,10 +31,10 @@
static uint32_t final_reg;
-static device_t find_lpc_dev( device_t dev, unsigned devfn)
+static struct device *find_lpc_dev( struct device *dev, unsigned devfn)
{
- device_t lpc_dev;
+ struct device *lpc_dev;
lpc_dev = dev_find_slot(dev->bus->secondary, devfn);
@@ -54,10 +54,10 @@ if ((lpc_dev->vendor != PCI_VENDOR_ID_SIS) || (
return lpc_dev;
}
-void sis966_enable(device_t dev)
+void sis966_enable(struct device *dev)
{
- device_t lpc_dev = 0;
- device_t sm_dev = 0;
+ struct device *lpc_dev = NULL;
+ struct device *sm_dev = NULL;
uint16_t index = 0;
uint16_t index2 = 0;
uint32_t reg_old, reg;