watchdog: rti-wdt: Add missing pm_runtime_disable() in probe function
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 5 Jan 2022 09:21:13 +0000 (09:21 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 27 Mar 2022 15:04:07 +0000 (17:04 +0200)
commitd055ef3a2c6919cff504ae3b710c96318d545fd2
tree414e0c57b5cff81347407e820ca9e433505e50e0
parentcf6e4bc16dba2068fa4a115300185a8c56edc93f
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: 2d63908bdbfb ("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>
drivers/watchdog/rti_wdt.c