commit | 533b298110475804b15b93475389736140bf4aa9 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Mon Oct 08 15:01:41 2012 -0700 |
committer | Tony Lindgren <tony@atomide.com> | Mon Oct 08 15:43:57 2012 -0700 |
tree | 75bffd5cc625fca75cde4ca267a66f21d5e77147 | |
parent | 64de3a00a16bcdf940cbebb1b2dc05d7cc13fef5 [diff] |
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>