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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:06:51 +0000 (14:06 +0200)
commitcc09e3ed2b4640cd39d17552bf7c8fd314984938
tree4cecd7572eaee3d56bf9e4550e3a4fcf5aea7927
parent99863703d24ee437c7d568731766ea3f6b1640fe
watchdog: rti-wdt: Add missing pm_runtime_disable() in probe function

commit d055ef3a2c6919cff504ae3b710c96318d545fd2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/rti_wdt.c