watchdog: imx2_wdt: Check for clk_prepare_enable() error
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 22 Jun 2015 04:16:18 +0000 (01:16 -0300)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 26 Jun 2015 08:41:11 +0000 (10:41 +0200)
commitaefb163cb2b876bcbbceee47e3e4f22ed7364630
tree1b86dc1d609e293e2dc72a6db5c2258e8c3dbcdd
parent46c80b20d07e9309677d81e1226dc30a055b63b7
watchdog: imx2_wdt: Check for clk_prepare_enable() error

clk_prepare_enable() may fail, so we should better check its return value
and propagate it in the case of error.

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