watchdog: imx2_wdt: Disable previously acquired clock on error path
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 22 Jun 2015 04:16:19 +0000 (01:16 -0300)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 26 Jun 2015 08:41:18 +0000 (10:41 +0200)
commitdb11cba205b6710a71ef52a0f24e0ef059f29f1c
treec9021ef24e7fabb4a039202c47f99a768e18ca37
parentaefb163cb2b876bcbbceee47e3e4f22ed7364630
watchdog: imx2_wdt: Disable previously acquired clock on error path

If watchdog_register_device() fails we should disable the previously
acquired wdev->clk clock on error path.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/imx2_wdt.c