Skip to content

Commit d5b29c2

Browse files
Tero KristoWim Van Sebroeck
authored andcommitted
watchdog: rti-wdt: balance pm runtime enable calls
PM runtime should be disabled in the fail path of probe and when the driver is removed. Fixes: 2d63908 ("watchdog: Add K3 RTI watchdog support") Signed-off-by: Tero Kristo <t-kristo@ti.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20200717132958.14304-5-t-kristo@ti.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 5527483 commit d5b29c2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/watchdog/rti_wdt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ static int rti_wdt_probe(struct platform_device *pdev)
303303

304304
err_iomap:
305305
pm_runtime_put_sync(&pdev->dev);
306+
pm_runtime_disable(&pdev->dev);
306307

307308
return ret;
308309
}
@@ -313,6 +314,7 @@ static int rti_wdt_remove(struct platform_device *pdev)
313314

314315
watchdog_unregister_device(&wdt->wdd);
315316
pm_runtime_put(&pdev->dev);
317+
pm_runtime_disable(&pdev->dev);
316318

317319
return 0;
318320
}

0 commit comments

Comments
 (0)