pci: mvebu: fix return value check in mvebu_pcie_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 27 May 2013 03:38:41 +0000 (11:38 +0800)
committerJason Cooper <jason@lakedaemon.net>
Mon, 27 May 2013 15:51:56 +0000 (15:51 +0000)
commit3d9939c92efdd4ced672b94994959ca71b141cb8
treedefed74e4a163028c18126cba28cd649e2a14f52
parentbda7aabd6d9a473f14c94280d8dc6d2d9a299479
pci: mvebu: fix return value check in mvebu_pcie_probe()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/pci/host/pci-mvebu.c