diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 10:57:04 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-21 14:02:20 +0000 |
commit | 1cbe19f2d8f394ff866a2536162a7b1900ba49c7 (patch) | |
tree | 7996ed636146c20d4db90c7bdfb41143dd813593 /src/southbridge/nvidia/ck804/ck804.c | |
parent | 8349cb58de2fb4e23d3054491a9398c9c66b5a62 (diff) |
sb/nvidia/ck804: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I59078ff96428d134f108ff2551556c8a7d2d3b37
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26401
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/southbridge/nvidia/ck804/ck804.c')
-rw-r--r-- | src/southbridge/nvidia/ck804/ck804.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/southbridge/nvidia/ck804/ck804.c b/src/southbridge/nvidia/ck804/ck804.c index 38988f5673..5fd9084a47 100644 --- a/src/southbridge/nvidia/ck804/ck804.c +++ b/src/southbridge/nvidia/ck804/ck804.c @@ -24,9 +24,9 @@ static u32 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); if (!lpc_dev) @@ -53,9 +53,9 @@ static device_t find_lpc_dev(device_t dev, unsigned devfn) return lpc_dev; } -static void ck804_enable(device_t dev) +static void ck804_enable(struct device *dev) { - device_t lpc_dev; + struct device *lpc_dev; unsigned index = 0, index2 = 0, deviceid, vendorid, devfn; u32 reg_old, reg; u8 byte; @@ -184,7 +184,8 @@ static void ck804_enable(device_t dev) } } -static void ck804_set_subsystem(device_t dev, unsigned vendor, unsigned device) +static void ck804_set_subsystem(struct device *dev, unsigned vendor, + unsigned device) { pci_write_config32(dev, 0x40, ((device & 0xffff) << 16) | (vendor & 0xffff)); |