mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
x86/platform/olpc: xo15: Drop wakeup source on driver removal
Prevent leaking a wakeup source object after removing the driver by
adding appropriate cleanup code to its remove callback function.
Fixes: a0f30f592d ("x86, olpc: Add XO-1.5 SCI driver")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2069931.usQuhbGJ8B@rafael.j.wysocki
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
parent
41354f4c8a
commit
cc966553e6
|
|
@ -186,6 +186,7 @@ static int xo15_sci_add(struct acpi_device *device)
|
|||
|
||||
static void xo15_sci_remove(struct acpi_device *device)
|
||||
{
|
||||
device_init_wakeup(&device->dev, false);
|
||||
acpi_disable_gpe(NULL, xo15_sci_gpe);
|
||||
acpi_remove_gpe_handler(NULL, xo15_sci_gpe, xo15_sci_gpe_handler);
|
||||
cancel_work_sync(&sci_work);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user