Skip to content

Commit aaa8f2e

Browse files
krzkgregkh
authored andcommitted
usb: typec: tipd: Fix wakeup source leaks on device unbind
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>
1 parent 9fc5986 commit aaa8f2e

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)