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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9fc5986fbc
commit
aaa8f2e959
@@ -1431,7 +1431,7 @@ static int tps6598x_probe(struct i2c_client *client)
|
||||
|
||||
tps->wakeup = device_property_read_bool(tps->dev, "wakeup-source");
|
||||
if (tps->wakeup && client->irq) {
|
||||
device_init_wakeup(&client->dev, true);
|
||||
devm_device_init_wakeup(&client->dev);
|
||||
enable_irq_wake(client->irq);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user