Skip to content

Commit d055ef3

Browse files
YuuoniyWim Van Sebroeck
authored andcommitted
watchdog: rti-wdt: Add missing pm_runtime_disable() in probe function
If the probe fails, we should use pm_runtime_disable() to balance pm_runtime_enable(). Fixes: 2d63908 ("watchdog: Add K3 RTI watchdog support") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20220105092114.23932-1-linmq006@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent cf6e4bc commit d055ef3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/watchdog/rti_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ static int rti_wdt_probe(struct platform_device *pdev)
228228
ret = pm_runtime_get_sync(dev);
229229
if (ret) {
230230
pm_runtime_put_noidle(dev);
231+
pm_runtime_disable(&pdev->dev);
231232
return dev_err_probe(dev, ret, "runtime pm failed\n");
232233
}
233234

0 commit comments

Comments
 (0)