mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01: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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
1 parent
d905d06e64
commit
6c7115cdf6
1 file changed
+1
-1
@@ -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