]> err.no Git - linux-2.6/commitdiff
ACPI: asus_acpi_init(): propagate correct return value
authorAndrew Morton <akpm@osdl.org>
Sun, 14 May 2006 02:56:00 +0000 (22:56 -0400)
committerLen Brown <len.brown@intel.com>
Mon, 15 May 2006 05:26:20 +0000 (01:26 -0400)
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/asus_acpi.c

index f4c87750dbf2bce15479c3a56bff51dba4c25a86..fccbf938ea04c13bf3a7ba4c68543f78aa789542 100644 (file)
@@ -1229,7 +1229,7 @@ static int __init asus_acpi_init(void)
        if (result < 1) {
                acpi_bus_unregister_driver(&asus_hotk_driver);
                remove_proc_entry(PROC_ASUS, acpi_root_dir);
-               return -ENODEV;
+               return result;
        }
 
        return 0;