clk: npcm7xx: fix return value check in npcm7xx_clk_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 26 Apr 2018 11:21:08 +0000 (11:21 +0000)
committerStephen Boyd <sboyd@kernel.org>
Tue, 1 May 2018 21:50:29 +0000 (14:50 -0700)
commit1646337b866753681148db3a8878c4a062b484c5
tree2ffb7436e0d1862d44f66bb132c927cbe70405d0
parentfcfd14369856af8ae34cd5b556e480cb1e39ed1a
clk: npcm7xx: fix return value check in npcm7xx_clk_init()

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

Fixes: fcfd14369856 ("clk: npcm7xx: add clock controller")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-npcm7xx.c