From 160fc4736b072d96e7fe64e6be7dc84791d0605a Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 28 Oct 2020 13:21:04 -0700 Subject: drivers/wifi/generic: Use is_dev_enabled() instead of dev->enabled This change replaces the checks for dev->enabled with the helper function `is_dev_enabled()`. Change-Id: Iacceda396c9300bbfa124e76fb9c99d86313ea0f Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/c/coreboot/+/46904 Reviewed-by: Duncan Laurie Tested-by: build bot (Jenkins) --- src/drivers/wifi/generic/acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers/wifi') diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c index 33862d9526..ac2c5eb5ba 100644 --- a/src/drivers/wifi/generic/acpi.c +++ b/src/drivers/wifi/generic/acpi.c @@ -222,7 +222,7 @@ void wifi_pcie_fill_ssdt(const struct device *dev) { const char *path; - if (!dev->enabled) + if (!is_dev_enabled(dev)) return; path = acpi_device_path(dev); @@ -247,7 +247,7 @@ void wifi_cnvi_fill_ssdt(const struct device *dev) { const char *path; - if (!dev->enabled) + if (!is_dev_enabled(dev)) return; path = acpi_device_path(dev->bus->dev); -- cgit v1.2.3