summaryrefslogtreecommitdiff
path: root/src/soc/intel/baytrail
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-02-07 12:44:00 +0200
committerNico Huber <nico.h@gmx.de>2019-02-28 09:55:42 +0000
commit17387f67ad0d286332e4c498de08354a37e61fdb (patch)
treeb17d9cc894855d8c45650b18c07e25eea24ec365 /src/soc/intel/baytrail
parentdb9e9ac30d12ac4fa548c01b907193503a5ae421 (diff)
downloadcoreboot-17387f67ad0d286332e4c498de08354a37e61fdb.tar.xz
intel/spi: Fix use of __SIMPLE_DEVICE__
Fix cases of using ENV_SMM where __SIMPLE_DEVICE__ should be used instead. Change-Id: I385c82767a87ff7a47466a200488fae9fc8b863d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31629 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Diffstat (limited to 'src/soc/intel/baytrail')
-rw-r--r--src/soc/intel/baytrail/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/baytrail/spi.c b/src/soc/intel/baytrail/spi.c
index 81e118c4e6..497bfd5d73 100644
--- a/src/soc/intel/baytrail/spi.c
+++ b/src/soc/intel/baytrail/spi.c
@@ -264,7 +264,7 @@ static ich9_spi_regs *spi_regs(void)
{
uint32_t sbase;
-#ifdef __SMM__
+#ifdef __SIMPLE_DEVICE__
pci_devfn_t dev = PCI_DEV(0, LPC_DEV, LPC_FUNC);
#else
struct device *dev = pcidev_on_root(LPC_DEV, LPC_FUNC);