diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-07-03 03:17:34 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-07-03 13:03:41 +0200 |
commit | 417a564c65881d26c7600c146e114a438a223ecf (patch) | |
tree | 4d2ec316eef342ae9c2cb03721fd78f4748fd473 /drivers/acpi/pmic | |
parent | Linux 5.2-rc7 (diff) | |
download | linux-417a564c65881d26c7600c146e114a438a223ecf.tar.xz linux-417a564c65881d26c7600c146e114a438a223ecf.zip |
ACPI / PMIC: intel: Drop double removal of address space handler
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>
Diffstat (limited to 'drivers/acpi/pmic')
-rw-r--r-- | drivers/acpi/pmic/intel_pmic.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/pmic/intel_pmic.c b/drivers/acpi/pmic/intel_pmic.c index 1b722fd57d5e..452041398b34 100644 --- a/drivers/acpi/pmic/intel_pmic.c +++ b/drivers/acpi/pmic/intel_pmic.c @@ -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; } |