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>
This commit is contained in:
Furquan Shaikh 2018-08-08 13:33:08 -07:00
parent 617fcf3934
commit 11d0c32e69
1 changed files with 1 additions and 1 deletions

View File

@ -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 */