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 <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 5527483 commit d5b29c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)