From: Alan Jenkins Date: Thu, 3 Dec 2009 07:44:48 +0000 (+0000) Subject: asus-laptop: Remove uneccesary acpi_disabled check X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b7fab7a0703a9d3a3b4b59aa2f7b098b2b83b8fe;p=deliverable%2Flinux.git 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 Signed-off-by: Len Brown --- diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 8af43e9b6183..4234edbe6ffc 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c @@ -1438,9 +1438,6 @@ static int __init asus_laptop_init(void) { int result; - if (acpi_disabled) - return -ENODEV; - result = acpi_bus_register_driver(&asus_hotk_driver); if (result < 0) return result;