ACPI / PMIC: intel: Drop double removal of address space handler
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 3 Jul 2019 01:17:34 +0000 (04:17 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Jul 2019 11:03:41 +0000 (13:03 +0200)
There is no need to remove address space handler twice,
because removal is idempotent.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pmic/intel_pmic.c

index 1b722fd..4520413 100644 (file)
@@ -284,8 +284,6 @@ int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle,
                                                    intel_pmic_thermal_handler,
                                                    NULL, opregion);
        if (ACPI_FAILURE(status)) {
-               acpi_remove_address_space_handler(handle, PMIC_POWER_OPREGION_ID,
-                                                 intel_pmic_power_handler);
                ret = -ENODEV;
                goto out_remove_power_handler;
        }