From bcb124e0098156b0d7f03589cf631aa3738a0dae Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sat, 19 May 2018 10:29:50 +0200 Subject: sb/via/vt8237r: Get rid of device_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use of device_t has been abandoned in ramstage. Change-Id: Ic4137bc4008d08e0e0d002e52c353fc29355ccb1 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26395 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/southbridge/via/vt8237r/ctrl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/southbridge/via/vt8237r/ctrl.c') 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); } -- cgit v1.2.3