Skip to content

Commit 003c872

Browse files
author
Desnes Nunes
committed
usb: typec: tipd: Fix wakeup source leaks on device unbind
JIRA: https://issues.redhat.com/browse/RHEL-116016 commit aaa8f2e Author: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Date: Sun, 6 Apr 2025 22:40:51 +0200 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: Desnes Nunes <desnesn@redhat.com>
1 parent 614ffb4 commit 003c872

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)