Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/27005
Change subject: soc/intel/fsp_baytrail: Get rid of device_t ......................................................................
soc/intel/fsp_baytrail: Get rid of device_t
Change-Id: Ie7398b5054a234f76a3b52ec133ad898059efdf5 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/soc/intel/fsp_baytrail/pmutil.c M src/soc/intel/fsp_baytrail/spi.c 2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/05/27005/1
diff --git a/src/soc/intel/fsp_baytrail/pmutil.c b/src/soc/intel/fsp_baytrail/pmutil.c index a588412..33ecc09 100644 --- a/src/soc/intel/fsp_baytrail/pmutil.c +++ b/src/soc/intel/fsp_baytrail/pmutil.c @@ -35,8 +35,8 @@ #include <device/device.h> #include <device/pci.h>
-static device_t pcu_dev; -static device_t get_pcu_dev(void) +static struct device *pcu_dev; +static struct device *get_pcu_dev(void) { if (pcu_dev == NULL) pcu_dev = dev_find_slot(0, PCI_DEVFN(PCU_DEV, 0)); diff --git a/src/soc/intel/fsp_baytrail/spi.c b/src/soc/intel/fsp_baytrail/spi.c index 6787dcb..d8b1d55 100644 --- a/src/soc/intel/fsp_baytrail/spi.c +++ b/src/soc/intel/fsp_baytrail/spi.c @@ -259,7 +259,7 @@ pci_devfn_t dev; dev = PCI_DEV(0, LPC_DEV, LPC_FUNC); #else - device_t dev; + struct device *dev; dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC)); #endif pci_read_config_dword(dev, SBASE, &sbase);