aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/fsp_baytrail/spi.c
diff options
context:
space:
mode:
authorAntonello Dettori <dev@dettori.io>2016-11-08 18:44:46 +0100
committerMartin Roth <martinroth@google.com>2017-03-26 04:33:19 +0200
commitfb94dcf5d5846de9b0709edd1ee22ef00277a7d2 (patch)
tree4120f50deac16fdc9bf8bf34d6e90c3732e585b6 /src/soc/intel/fsp_baytrail/spi.c
parent5ef5c00704ac902f33f52e8daa4f3167cf1000ba (diff)
soc/intel/fsp_baytrail: transition away from device_t
Replace the use of the old device_t definition inside soc/intel/fsp_baytrail. Change-Id: I2791346289c04049e6f032c8e120e4be9ba6657f Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/17319 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/intel/fsp_baytrail/spi.c')
-rw-r--r--src/soc/intel/fsp_baytrail/spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/fsp_baytrail/spi.c b/src/soc/intel/fsp_baytrail/spi.c
index dee7440ef6..409e796daf 100644
--- a/src/soc/intel/fsp_baytrail/spi.c
+++ b/src/soc/intel/fsp_baytrail/spi.c
@@ -251,12 +251,13 @@ static void read_reg(const void *src, void *value, uint32_t size)
static ich9_spi_regs *spi_regs(void)
{
- device_t dev;
uint32_t sbase;
#ifdef __SMM__
+ pci_devfn_t dev;
dev = PCI_DEV(0, LPC_DEV, LPC_FUNC);
#else
+ device_t dev;
dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
#endif
pci_read_config_dword(dev, SBASE, &sbase);