]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a364308d366e743afc9de6734342ac5bbd3158b
tree309e2787b6a81a2f2c52b0818059661f79595d52
parent1339a7c2528807821f63f22bd4ce095b12d50b3f
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