aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/smihandler.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-06-10 23:36:44 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-06-14 09:29:31 +0000
commitc8a649c08f92d4d2255626da4e1cd7a6d71469e7 (patch)
tree14a899738d09b37030585aca3b59344595208e36 /src/soc/intel/cannonlake/smihandler.c
parent846b4941fee842bc359fa2b611cf0c3fc4f158b2 (diff)
src: Use of device_t is deprecated
Change-Id: I9cebfc5c77187bd81094031c43ff6df094908417 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/27010 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/intel/cannonlake/smihandler.c')
-rw-r--r--src/soc/intel/cannonlake/smihandler.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/soc/intel/cannonlake/smihandler.c b/src/soc/intel/cannonlake/smihandler.c
index ba010aaa60..0ecc66df02 100644
--- a/src/soc/intel/cannonlake/smihandler.c
+++ b/src/soc/intel/cannonlake/smihandler.c
@@ -35,7 +35,8 @@ const struct smm_save_state_ops *get_smm_save_state_ops(void)
return &em64t101_smm_ops;
}
-static void pch_configure_endpoints(device_t dev, int epmask_id, uint32_t mask)
+static void pch_configure_endpoints(pci_devfn_t dev, int epmask_id,
+ uint32_t mask)
{
uint32_t reg32;
@@ -43,7 +44,7 @@ static void pch_configure_endpoints(device_t dev, int epmask_id, uint32_t mask)
pci_write_config32(dev, PCH_P2SB_EPMASK(epmask_id), reg32 | mask);
}
-static void disable_sideband_access(device_t dev)
+static void disable_sideband_access(pci_devfn_t dev)
{
u8 reg8;
uint32_t mask;
@@ -60,7 +61,7 @@ static void disable_sideband_access(device_t dev)
static void pch_disable_heci(void)
{
- device_t dev = PCH_DEV_P2SB;
+ pci_devfn_t dev = PCH_DEV_P2SB;
struct pcr_sbi_msg msg = {
.pid = PID_CSME0,
.offset = 0,