Skip to content

Commit cdaebfd

Browse files
krzksmb49
authored andcommitted
usb: typec: tipd: Fix wakeup source leaks on device unbind
BugLink: https://bugs.launchpad.net/bugs/2121266 [ Upstream commit aaa8f2e959341fd4a3ccf111500eb1e6176678e0 ] Device can be unbound, so driver must also release memory for the wakeup source. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20250406204051.63446-2-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 24ad993 commit cdaebfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/tipd/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ static int tps6598x_probe(struct i2c_client *client)
14311431

14321432
tps->wakeup = device_property_read_bool(tps->dev, "wakeup-source");
14331433
if (tps->wakeup && client->irq) {
1434-
device_init_wakeup(&client->dev, true);
1434+
devm_device_init_wakeup(&client->dev);
14351435
enable_irq_wake(client->irq);
14361436
}
14371437

0 commit comments

Comments
 (0)