summaryrefslogtreecommitdiff
path: root/drivers/staging/xillybus/xillybus_pcie.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-12-16 13:51:16 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-17 09:48:58 -0800
commit8eec4555511bfa1f8a2e0a2de45c988fd30c3efb (patch)
treece5fa853ce0b7321903011f0dbe665b60b87dcdd /drivers/staging/xillybus/xillybus_pcie.c
parent17afd17bdd1d52f39364fc79ca35c037504a10cc (diff)
staging: xillybus: fix error return code in xilly_probe()
Fix to return negative error code -EIO from the error handling case instead of 0. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xillybus/xillybus_pcie.c')
-rw-r--r--drivers/staging/xillybus/xillybus_pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/xillybus/xillybus_pcie.c b/drivers/staging/xillybus/xillybus_pcie.c
index 0564f97bdde4..51426d80ca7b 100644
--- a/drivers/staging/xillybus/xillybus_pcie.c
+++ b/drivers/staging/xillybus/xillybus_pcie.c
@@ -168,9 +168,9 @@ static int xilly_probe(struct pci_dev *pdev,
}
endpoint->registers = pci_iomap(pdev, 0, 128);
-
if (!endpoint->registers) {
dev_err(endpoint->dev, "Failed to map BAR 0. Aborting.\n");
+ rc = -EIO;
goto failed_iomap0;
}