From 19b885943d171ffe7a68a6e99a38eff26aeac0de Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 20 Sep 2018 08:52:27 +0200 Subject: soc/intel/common/block: Don't use device_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use of device_t is deprecated. Change-Id: Id82059898844fbe20665250062b67652d6cc1f9e Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/28694 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Neuschäfer --- src/soc/intel/common/block/include/intelblocks/smihandler.h | 2 +- src/soc/intel/common/block/smm/smihandler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/soc/intel/common/block/include/intelblocks/smihandler.h b/src/soc/intel/common/block/include/intelblocks/smihandler.h index 197268b29e..050d93af61 100644 --- a/src/soc/intel/common/block/include/intelblocks/smihandler.h +++ b/src/soc/intel/common/block/include/intelblocks/smihandler.h @@ -155,7 +155,7 @@ void smihandler_soc_at_finalize(void); * This function returns a 1 or 0 depending on whether disable_busmaster * needs to be done for the specified device on S5 entry */ -int smihandler_soc_disable_busmaster(device_t dev); +int smihandler_soc_disable_busmaster(pci_devfn_t dev); /* SMI handlers that should be serviced in SCI mode too. */ uint32_t smihandler_soc_get_sci_mask(void); diff --git a/src/soc/intel/common/block/smm/smihandler.c b/src/soc/intel/common/block/smm/smihandler.c index c6f9692d81..e4c13dd4b9 100644 --- a/src/soc/intel/common/block/smm/smihandler.c +++ b/src/soc/intel/common/block/smm/smihandler.c @@ -46,7 +46,7 @@ __weak void smihandler_soc_at_finalize(void) return; } -__weak int smihandler_soc_disable_busmaster(device_t dev) +__weak int smihandler_soc_disable_busmaster(pci_devfn_t dev) { return 1; } -- cgit v1.2.3