We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4389ed2 commit 816c2edCopy full SHA for 816c2ed
drivers/acpi/bay.c
@@ -377,6 +377,9 @@ static int __init bay_init(void)
377
378
INIT_LIST_HEAD(&drive_bays);
379
380
+ if (acpi_disabled)
381
+ return -ENODEV;
382
+
383
/* look for dockable drive bays */
384
acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
385
ACPI_UINT32_MAX, find_bay, &bays, NULL);
drivers/acpi/dock.c
@@ -917,6 +917,9 @@ static int __init dock_init(void)
917
918
dock_station = NULL;
919
920
921
+ return 0;
922
923
/* look for a dock station */
924
925
ACPI_UINT32_MAX, find_dock, &num, NULL);
0 commit comments