ARM: OMAP3: Beagle: fix return value check in beagle_opp_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 30 Oct 2013 05:23:21 +0000 (13:23 +0800)
committerTony Lindgren <tony@atomide.com>
Fri, 15 Nov 2013 15:38:14 +0000 (07:38 -0800)
commitc27f2de754a1412ce4a6c4af723605f776ec4ac2
tree309e2787b6a81a2f2c52b0818059661f79595d52
parent7b0d0cce3b441597d3a66a8951c2f3e70071c6cc
ARM: OMAP3: Beagle: fix return value check in beagle_opp_init()

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

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