]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: no AC status notification
authorLen Brown <len.brown@intel.com>
Sat, 14 Jun 2008 05:26:37 +0000 (01:26 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 14 Jun 2008 05:26:37 +0000 (01:26 -0400)
http://bugzilla.kernel.org/show_bug.cgi?id=10695

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ac.c

index 5b73f6a2cd86c839d36ed8c9cb83bb5659f0cc04..831883b7d6c9c5f456bb8db766ebc978b00bd907 100644 (file)
@@ -233,6 +233,9 @@ static void acpi_ac_notify(acpi_handle handle, u32 event, void *data)
 
        device = ac->device;
        switch (event) {
+       default:
+               ACPI_DEBUG_PRINT((ACPI_DB_INFO,
+                                 "Unsupported event [0x%x]\n", event));
        case ACPI_AC_NOTIFY_STATUS:
        case ACPI_NOTIFY_BUS_CHECK:
        case ACPI_NOTIFY_DEVICE_CHECK:
@@ -244,11 +247,6 @@ static void acpi_ac_notify(acpi_handle handle, u32 event, void *data)
 #ifdef CONFIG_ACPI_SYSFS_POWER
                kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE);
 #endif
-               break;
-       default:
-               ACPI_DEBUG_PRINT((ACPI_DB_INFO,
-                                 "Unsupported event [0x%x]\n", event));
-               break;
        }
 
        return;