drivers/rtc/rtc-imxdi.c: check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 3 Apr 2014 21:49:38 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:16 +0000 (16:21 -0700)
commit3378f73da2d7fb765240dbf348cad11648c5b775
tree448b269911461bf99d29155af6e8e225c11cf105
parent4071ea25cc08d41002746cca2d69ac700d67a2ac
drivers/rtc/rtc-imxdi.c: check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so let's check its return value and
propagate it in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-imxdi.c