|
@@ -207,7 +207,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;
|
|
@@ -255,7 +255,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)
|