mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-17 20:29:24 +00:00
dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled.
Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
This commit is contained in:
parent
d185705690
commit
cc7e51666d
2 changed files with 6 additions and 0 deletions
|
@ -377,6 +377,9 @@ static int __init bay_init(void)
|
||||||
|
|
||||||
INIT_LIST_HEAD(&drive_bays);
|
INIT_LIST_HEAD(&drive_bays);
|
||||||
|
|
||||||
|
if (acpi_disabled)
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
if (acpi_disabled)
|
if (acpi_disabled)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|
|
@ -917,6 +917,9 @@ static int __init dock_init(void)
|
||||||
|
|
||||||
dock_station = NULL;
|
dock_station = NULL;
|
||||||
|
|
||||||
|
if (acpi_disabled)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (acpi_disabled)
|
if (acpi_disabled)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue