diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 10:29:50 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-21 20:26:01 +0000 |
commit | bcb124e0098156b0d7f03589cf631aa3738a0dae (patch) | |
tree | 2eb0311de04242b7a272067072cb9e738de5bfa1 /src/southbridge/via/vt8237r/ctrl.c | |
parent | ec41dae245df3fd938de0dfce3459f2a85a92753 (diff) | |
download | coreboot-bcb124e0098156b0d7f03589cf631aa3738a0dae.tar.xz |
sb/via/vt8237r: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: Ic4137bc4008d08e0e0d002e52c353fc29355ccb1
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26395
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/via/vt8237r/ctrl.c')
-rw-r--r-- | src/southbridge/via/vt8237r/ctrl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/southbridge/via/vt8237r/ctrl.c b/src/southbridge/via/vt8237r/ctrl.c index 7b1518c53b..27761e6444 100644 --- a/src/southbridge/via/vt8237r/ctrl.c +++ b/src/southbridge/via/vt8237r/ctrl.c @@ -26,7 +26,7 @@ static void vt8237_cfg(struct device *dev) { u8 regm; - device_t devfun3; + struct device *devfun3; devfun3 = dev_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_K8T800_DRAM, 0); @@ -107,7 +107,7 @@ static void vt8237_cfg(struct device *dev) static void vt8237s_vlink_init(struct device *dev) { u8 reg; - device_t devfun7; + struct device *devfun7; devfun7 = dev_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_K8T800_NB_SB_CTR, 0); @@ -182,7 +182,7 @@ static void vt8237s_vlink_init(struct device *dev) static void vt8237a_vlink_init(struct device *dev) { u8 reg; - device_t devfun7; + struct device *devfun7; devfun7 = dev_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_K8T800_NB_SB_CTR, 0); @@ -276,8 +276,9 @@ static void ctrl_init(struct device *dev) * VT8237R specific configuration. Other SB are done in their own * directories. TODO: Add A version. */ - device_t devsb = dev_find_device(PCI_VENDOR_ID_VIA, - PCI_DEVICE_ID_VIA_VT8237S_LPC, 0); + struct device *devsb = dev_find_device(PCI_VENDOR_ID_VIA, + PCI_DEVICE_ID_VIA_VT8237S_LPC, + 0); if (devsb) { vt8237s_vlink_init(dev); } |