Skip to content

Commit 62024ad

Browse files
krzkgregkh
authored andcommitted
gpio: zynq: Fix wakeup source leaks on device unbind
commit c5672e3 upstream. Device can be unbound, so driver must also release memory for the wakeup source. Cc: [email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2d66517 commit 62024ad

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)