Skip to content

Commit 6c7115c

Browse files
krzklag-linaro
authored andcommitted
mfd: max77541: 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent d905d06 commit 6c7115c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/max77541.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static int max77541_pmic_setup(struct device *dev)
152152
if (ret)
153153
return dev_err_probe(dev, ret, "Failed to initialize IRQ\n");
154154

155-
ret = device_init_wakeup(dev, true);
155+
ret = devm_device_init_wakeup(dev);
156156
if (ret)
157157
return dev_err_probe(dev, ret, "Unable to init wakeup\n");
158158

0 commit comments

Comments
 (0)