]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: battery: Reduce code duplication related to cleanup
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Dec 2025 14:02:37 +0000 (15:02 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Dec 2025 14:11:38 +0000 (15:11 +0100)
commit0d17aafa79c6c5693a740a5b6c2693203e4043ee
tree117a11de91c7e75f2f0ae8dcfbad0f2f8e683652
parent08b54fd577825d922a2263f3dcf8481e3720d606
ACPI: battery: Reduce code duplication related to cleanup

Notice that sysfs_battery_cleanup() calls sysfs_remove_battery() under
battery->update_lock which is also done in acpi_battery_remove(), so
adjust the latter to use it.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/1866517.TLkxdtWsSY@rafael.j.wysocki
drivers/acpi/battery.c