Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/27003
Change subject: soc/intel/apollolake: Use pci_devfn_t instead of device_t ......................................................................
soc/intel/apollolake: Use pci_devfn_t instead of device_t
Change-Id: I768bb5e45a5c21fb4bf9335d030cf06efc1c371b Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/soc/intel/apollolake/bootblock/bootblock.c M src/soc/intel/apollolake/smihandler.c 2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/27003/1
diff --git a/src/soc/intel/apollolake/bootblock/bootblock.c b/src/soc/intel/apollolake/bootblock/bootblock.c index 81843a4..c7ababd 100644 --- a/src/soc/intel/apollolake/bootblock/bootblock.c +++ b/src/soc/intel/apollolake/bootblock/bootblock.c @@ -50,7 +50,7 @@
asmlinkage void bootblock_c_entry(uint64_t base_timestamp) { - device_t dev; + pci_devfn_t dev;
bootblock_systemagent_early_init();
@@ -75,7 +75,7 @@
static void enable_pmcbar(void) { - device_t pmc = PCH_DEV_PMC; + pci_devfn_t pmc = PCH_DEV_PMC;
/* Set PMC base addresses and enable decoding. */ pci_write_config32(pmc, PCI_BASE_ADDRESS_0, PMC_BAR0); diff --git a/src/soc/intel/apollolake/smihandler.c b/src/soc/intel/apollolake/smihandler.c index 5b28db2..4acd7cb 100644 --- a/src/soc/intel/apollolake/smihandler.c +++ b/src/soc/intel/apollolake/smihandler.c @@ -22,7 +22,7 @@ #include <soc/pci_devs.h> #include <soc/pm.h>
-int smihandler_soc_disable_busmaster(device_t dev) +int smihandler_soc_disable_busmaster(pci_devfn_t dev) { if (dev == PCH_DEV_PMC) return 0;