mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
gpio: mpc8xxx: Fix wakeup source leaks on device unbind
Device can be unbound, so driver must also release memory for the wakeup source. Cc: stable@vger.kernel.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250406202245.53854-1-krzysztof.kozlowski@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
2de1cf175c
commit
da47605e43
|
|
@ -410,7 +410,9 @@ static int mpc8xxx_probe(struct platform_device *pdev)
|
|||
goto err;
|
||||
}
|
||||
|
||||
device_init_wakeup(dev, true);
|
||||
ret = devm_device_init_wakeup(dev);
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret, "Failed to init wakeup\n");
|
||||
|
||||
return 0;
|
||||
err:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user