OSDN Git Service

PCI: xgene: Fix the xgene_msi_probe() return code
authorFabio Estevam <festevam@gmail.com>
Wed, 20 Dec 2017 00:38:29 +0000 (22:38 -0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 14 Feb 2018 15:24:38 +0000 (15:24 +0000)
commit1736353f17e10bee352ec690757c66b568140724
treeb8fa6242db974d6f2a3abb349fa5b963882f9279
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
PCI: xgene: Fix the xgene_msi_probe() return code

If devm_ioremap_resource() detects an error condition in the return
value through IS_ERR(), the return value should be retrieved through
PTR_ERR() instead of hardcoding it.

Fix the xgene_msi_probe() error return code.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
[lorenzo.pieralisi@arm.com: rewrote commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/host/pci-xgene-msi.c