diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-08-30 17:34:32 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-10-18 00:48:39 +0300 |
commit | cb0701acfa7e3fe9e919cf2aa2aa939b7fd603c2 (patch) | |
tree | 9a6980523a6baa259e879b3efa2081b8e85d17fb /Documentation | |
parent | ac36d37e943635fc072e9d4f47e40a48fbcdb3f0 (diff) | |
download | linux-cb0701acfa7e3fe9e919cf2aa2aa939b7fd603c2.tar.xz |
ACPI: platform: Unregister stale platform devices
When commit 68bdb6773289 ("ACPI: add support for ACPI reconfiguration
notifiers") introduced reconfiguration notifiers, it missed the point
that the ACPI table, which might be loaded and then unloaded via
ConfigFS, could contain devices that were not enumerated by their
parents.
In such cases, the stale platform device is dangling in the system
while the rest of the devices from the same table are already gone.
Introduce acpi_platform_device_remove_notify() notifier that, in
similar way to I²C or SPI buses, unregisters the platform devices
on table removal event.
Fixes: 68bdb6773289 ("ACPI: add support for ACPI reconfiguration notifiers")
Depends-on: 00500147cbd3 ("drivers: Introduce device lookup variants by ACPI_COMPANION device")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[ rjw: Changelog & function rename ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions