Skip to content

Commit c5672e3

Browse files
krzkBartosz Golaszewski
authored andcommitted
gpio: zynq: 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-2-krzysztof.kozlowski@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent da47605 commit c5672e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-zynq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,7 @@ static void zynq_gpio_remove(struct platform_device *pdev)
10111011
ret = pm_runtime_get_sync(&pdev->dev);
10121012
if (ret < 0)
10131013
dev_warn(&pdev->dev, "pm_runtime_get_sync() Failed\n");
1014+
device_init_wakeup(&pdev->dev, 0);
10141015
gpiochip_remove(&gpio->chip);
10151016
device_set_wakeup_capable(&pdev->dev, 0);
10161017
pm_runtime_disable(&pdev->dev);

0 commit comments

Comments
 (0)