]> git.baikalelectronics.ru Git - kernel.git/commit
clk: tegra: fix __clk_lookup() return value checks
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 29 Oct 2013 02:07:57 +0000 (03:07 +0100)
committerPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 28 Nov 2013 13:09:22 +0000 (15:09 +0200)
commit8f3bd54744ce1a80d348df72605a878326f2482d
treefa0cbe9c27a15cf5104aa4bbe50ba978ba948619
parentbbb62ca93c1eb1360f6b7757f635b4299262982d
clk: tegra: fix __clk_lookup() return value checks

In case of error, the function __clk_lookup() 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: Peter De Schrijver <pdeschrijver@nvidia.com>
drivers/clk/tegra/clk-pll.c