watchdog: rti-wdt: disable runtime pm in case of failure
PATCH v2 1/1 watchdog: rti-wdt: disable runtime pm in case of failure
In case of runtime pm failed, should disable runtime pm.
Fixes 2d63908bdbfb ("watchdog: Add K3 RTI watchdog support")
Reported-by Hulk Robot <[email protected]>
Signed-off-by Wang Li <[email protected]>
---
Changelog:
v2
- Change the fix tag.
--- drivers/watchdog/rti_wdt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/watchdog/rti_wdt.c +4 -2
@@ -227,8 +227,10 @@ static int rti_wdt_probe(struct platform_device *pdev)pm_runtime_enable (dev); ret =pm_runtime_get_sync (dev); -if (ret) -return dev_err_probe (dev, ret,"runtime pm failed\n" ); +if (ret) { + ret =dev_err_probe (dev, ret,"runtime pm failed\n" ); + goto err_iomap; + }platform_set_drvdata (pdev, wdt);
Signature · 1 line
2.25.4
Quoted 5 lines · Wang Li
In case of runtime pm failed, should disable runtime pm.
Fixes 2d63908bdbfb ("watchdog: Add K3 RTI watchdog support")Reported-by Hulk Robot <[email protected]>Signed-off-by Wang Li <[email protected]>
Quoted 8 lines
---
Changelog:
v2
- Change the fix tag.--- drivers/watchdog/rti_wdt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Reviewed-by Krzysztof Kozlowski <[email protected]>
Best regards,
Krzysztof
Quoted 5 lines · Wang Li
In case of runtime pm failed, should disable runtime pm.
Fixes 2d63908bdbfb ("watchdog: Add K3 RTI watchdog support")Reported-by Hulk Robot <[email protected]>Signed-off-by Wang Li <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 28 lines
---
Changelog:
v2
- Change the fix tag.--- drivers/watchdog/rti_wdt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/watchdog/rti_wdt.c +4
-2@@ -227,8 +227,10 @@ static int rti_wdt_probe(struct platform_device *pdev)pm_runtime_enable (dev); ret =pm_runtime_get_sync (dev); -if (ret) -return dev_err_probe (dev, ret,"runtime pm failed\n" ); +if (ret) { + ret =dev_err_probe (dev, ret,"runtime pm failed\n" ); + goto err_iomap; + }platform_set_drvdata (pdev, wdt);Signature · 1 line
2.25.4