ARM: OMAP: fix return value check in realtime_counter_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Oct 2012 22:01:41 +0000 (15:01 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 8 Oct 2012 22:43:57 +0000 (15:43 -0700)
commit533b298110475804b15b93475389736140bf4aa9
tree75bffd5cc625fca75cde4ca267a66f21d5e77147
parent64de3a00a16bcdf940cbebb1b2dc05d7cc13fef5
ARM: OMAP: fix return value check in realtime_counter_init()

In case of error, the function clk_get() returns ERR_PTR()
and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/timer.c