summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/apollolake/chip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index 057138c803..651bd8418c 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -744,9 +744,7 @@ static void configure_xhci_host_mode_port0(void)
static int check_xdci_enable(void)
{
- struct device *dev = PCH_DEV_XDCI;
-
- return !!dev->enabled;
+ return is_dev_enabled(pcidev_path_on_root(PCH_DEVFN_XDCI));
}
static void disable_xhci_lfps_pm(void)