mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 02:21:36 +00:00
asus-laptop: Remove uneccesary acpi_disabled check
acpi_bus_register_driver() already checks acpi_disabled, so acpi bus drivers don't need to. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
2d5db0be4c
commit
b7fab7a070
@ -1438,9 +1438,6 @@ static int __init asus_laptop_init(void)
|
|||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
if (acpi_disabled)
|
|
||||||
return -ENODEV;
|
|
||||||
|
|
||||||
result = acpi_bus_register_driver(&asus_hotk_driver);
|
result = acpi_bus_register_driver(&asus_hotk_driver);
|
||||||
if (result < 0)
|
if (result < 0)
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user