Skip to content

Commit 37b4390

Browse files
rafaeljwgregkh
authored andcommitted
x86/platform/olpc: xo15: Drop wakeup source on driver removal
[ Upstream commit cc96655 ] Prevent leaking a wakeup source object after removing the driver by adding appropriate cleanup code to its remove callback function. Fixes: a0f30f5 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 4997873 commit 37b4390

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/platform/olpc/olpc-xo15-sci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ static int xo15_sci_add(struct acpi_device *device)
185185

186186
static void xo15_sci_remove(struct acpi_device *device)
187187
{
188+
device_init_wakeup(&device->dev, false);
188189
acpi_disable_gpe(NULL, xo15_sci_gpe);
189190
acpi_remove_gpe_handler(NULL, xo15_sci_gpe, xo15_sci_gpe_handler);
190191
cancel_work_sync(&sci_work);

0 commit comments

Comments
 (0)