watchdog: rti-wdt: balance pm runtime enable calls
authorTero Kristo <t-kristo@ti.com>
Fri, 17 Jul 2020 13:29:58 +0000 (16:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:15:15 +0000 (13:15 +0200)
commitf4c223e3941bd0737fe019e1db85b5f298ac1163
tree0683ff4c97075bcfabf46f45bf717e04b86324d2
parent6a35f55743e0c25ff5ca96162482fd36a75e1b8e
watchdog: rti-wdt: balance pm runtime enable calls

[ Upstream commit d5b29c2c5ba2bd5bbdb5b744659984185d17d079 ]

PM runtime should be disabled in the fail path of probe and when
the driver is removed.

Fixes: 2d63908bdbfb ("watchdog: Add K3 RTI watchdog support")
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200717132958.14304-5-t-kristo@ti.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/rti_wdt.c