summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/lynxpoint/pch.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-12-05 10:59:42 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-12-07 11:22:20 +0000
commit1dcd8dbf760cd7b324d3a20f9e5f1c36fa95b5eb (patch)
tree85194b06b38468c7614820346f2aba4442477ebc /src/southbridge/intel/lynxpoint/pch.c
parent012ef7735d6878ef63aa0315863636bfb88e6c1f (diff)
src/southbridge: Get rid of device_t
Use of device_t is deprecated. Change-Id: Ib4db9c263ff156966926f9576eed7e3cfb02e78a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/30045 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/southbridge/intel/lynxpoint/pch.c')
-rw-r--r--src/southbridge/intel/lynxpoint/pch.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/southbridge/intel/lynxpoint/pch.c b/src/southbridge/intel/lynxpoint/pch.c
index cb01de7496..6596aa2f5d 100644
--- a/src/southbridge/intel/lynxpoint/pch.c
+++ b/src/southbridge/intel/lynxpoint/pch.c
@@ -23,14 +23,17 @@
#include <device/pci_def.h>
#include "pch.h"
-static device_t pch_get_lpc_device(void)
+#ifdef __SIMPLE_DEVICE__
+static pci_devfn_t pch_get_lpc_device(void)
{
-#ifdef __SMM__
return PCI_DEV(0, 0x1f, 0);
+}
#else
+static struct device *pch_get_lpc_device(void)
+{
return dev_find_slot(0, PCI_DEVFN(0x1f, 0));
-#endif
}
+#endif
int pch_silicon_revision(void)
{