summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ac.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2008-06-14 01:26:37 -0400
committerLen Brown <len.brown@intel.com>2008-06-14 01:26:37 -0400
commitf163ff5176a8e9c827d8ebe044710d67d40799c3 (patch)
tree28f557f7ce17d80e188dd2eabf6d7bb444a5800b /drivers/acpi/ac.c
parentc6d8f400cc7610f04177f81168c19b8407cb48c3 (diff)
downloadop-kernel-dev-f163ff5176a8e9c827d8ebe044710d67d40799c3.zip
op-kernel-dev-f163ff5176a8e9c827d8ebe044710d67d40799c3.tar.gz
ACPI: no AC status notification
http://bugzilla.kernel.org/show_bug.cgi?id=10695 Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/ac.c')
-rw-r--r--drivers/acpi/ac.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index 5b73f6a..831883b 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -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;
OpenPOWER on IntegriCloud