]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-mxc.c: check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 23 Jan 2014 23:55:05 +0000 (15:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:59 +0000 (16:36 -0800)
commitb1a95695b97329c6f41ecf0ea20bd846f01034fc
treee0cc27d6250a53477d851ffc67f191458f76f2bc
parent0c4d800b6377511e4267a2c6a3bc79e0bc14d620
drivers/rtc/rtc-mxc.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-mxc.c