eeepc-laptop: Remove uneccesary acpi_disabled check
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 3 Dec 2009 07:44:54 +0000 (07:44 +0000)
committerLen Brown <len.brown@intel.com>
Wed, 9 Dec 2009 20:54:30 +0000 (15:54 -0500)
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>
drivers/platform/x86/eeepc-laptop.c

index 7dde47a..f5efe8d 100644 (file)
@@ -1359,8 +1359,6 @@ static int __init eeepc_laptop_init(void)
 {
        int result;
 
-       if (acpi_disabled)
-               return -ENODEV;
        result = acpi_bus_register_driver(&eeepc_hotk_driver);
        if (result < 0)
                return result;