mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
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>
This commit is contained in:
committed by
Lee Jones
parent
d905d06e64
commit
6c7115cdf6
@@ -152,7 +152,7 @@ static int max77541_pmic_setup(struct device *dev)
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret, "Failed to initialize IRQ\n");
|
||||
|
||||
ret = device_init_wakeup(dev, true);
|
||||
ret = devm_device_init_wakeup(dev);
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret, "Unable to init wakeup\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user