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:
parent
617fcf3934
commit
11d0c32e69
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue