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 <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46904 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
cbe2fd351c
commit
160fc4736b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue