summaryrefslogtreecommitdiff
path: root/src/drivers/intel
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-08-08 13:33:08 -0700
committerFurquan Shaikh <furquan@google.com>2018-08-12 17:57:59 +0000
commit11d0c32e69ec50305fdeb8b8e6c4a14edd8e1d31 (patch)
tree20e33c27921eb9fecc0d4f80073077a295f7733a /src/drivers/intel
parent617fcf393446ab7e1ed311146c145dd654d29c60 (diff)
drivers/intel/wifi: Skip adding SSDT entry if device is disabled
This change checks to ensure that device is enabled before adding entry into SSDT. BUG=b:112371978 Change-Id: Ibe4811bef8cf0978b7a82d66a32f96247b9c823d Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/27962 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Justin TerAvest <teravest@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r--src/drivers/intel/wifi/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/intel/wifi/wifi.c b/src/drivers/intel/wifi/wifi.c
index 4b96a0297c..df425fad10 100644
--- a/src/drivers/intel/wifi/wifi.c
+++ b/src/drivers/intel/wifi/wifi.c
@@ -198,7 +198,7 @@ static void intel_wifi_fill_ssdt(struct device *dev)
const char *path = acpi_device_path(dev->bus->dev);
u32 address;
- if (!path)
+ if (!path || !dev->enabled)
return;
/* Device */