PCI: dwc: artpec6: Fix return value check in artpec6_add_pcie_ep()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 3 Jan 2018 07:33:35 +0000 (07:33 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 3 Jan 2018 11:31:53 +0000 (11:31 +0000)
commitc68febfd68e0f01d90da15bd10e94b42544f0f68
treebf63f5cfacbafdc8a5a7e79bfd6ac516db1fa345
parent83f4f3f63be2b2c4fc94e308a766859df2825f43
PCI: dwc: artpec6: Fix return value check in artpec6_add_pcie_ep()

In case of error, the function devm_ioremap() 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 <weiyongjun1@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/dwc/pcie-artpec6.c