]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/acpi/ac.c
Merge branch 'acpi-cleanup'
[karo-tx-linux.git] / drivers / acpi / ac.c
index 8095943e6e112da4b0dd3e77b92e331270624020..e7515aa43d6bd62c3ec0e33fb6781d2a9f2f27a7 100644 (file)
@@ -206,7 +206,7 @@ static int acpi_ac_probe(struct platform_device *pdev)
                goto end;
 
        result = acpi_install_notify_handler(ACPI_HANDLE(&pdev->dev),
-                       ACPI_DEVICE_NOTIFY, acpi_ac_notify_handler, ac);
+                       ACPI_ALL_NOTIFY, acpi_ac_notify_handler, ac);
        if (result) {
                power_supply_unregister(&ac->charger);
                goto end;
@@ -254,7 +254,7 @@ static int acpi_ac_remove(struct platform_device *pdev)
                return -EINVAL;
 
        acpi_remove_notify_handler(ACPI_HANDLE(&pdev->dev),
-                       ACPI_DEVICE_NOTIFY, acpi_ac_notify_handler);
+                       ACPI_ALL_NOTIFY, acpi_ac_notify_handler);
 
        ac = platform_get_drvdata(pdev);
        if (ac->charger.dev)