Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250406-mfd-device-wakekup-leak-v1-4-318e14bdba0a@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
6c7115cd d905d06e

+1 -1
+1 -1
drivers/mfd/max77541.c
··· 152 152 if (ret) 153 153 return dev_err_probe(dev, ret, "Failed to initialize IRQ\n"); 154 154 155 - ret = device_init_wakeup(dev, true); 155 + ret = devm_device_init_wakeup(dev); 156 156 if (ret) 157 157 return dev_err_probe(dev, ret, "Unable to init wakeup\n"); 158 158