summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/acpigen_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acpi/acpigen_usb.c b/src/acpi/acpigen_usb.c
index 90a9b77c60..7448b3b569 100644
--- a/src/acpi/acpigen_usb.c
+++ b/src/acpi/acpigen_usb.c
@@ -71,7 +71,7 @@ static void add_device_ref(struct acpi_dp *dsd,
const char *path;
char *fresh;
- if (!dev)
+ if (!dev || !dev->enabled)
return;
/*