From: Wei Yongjun Date: Mon, 16 Dec 2013 05:51:16 +0000 (+0800) Subject: staging: xillybus: fix error return code in xilly_probe() X-Git-Tag: v5.15~18493^2~354 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8eec4555511bfa1f8a2e0a2de45c988fd30c3efb;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Jingoo Han Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xillybus/xillybus_pcie.c b/drivers/staging/xillybus/xillybus_pcie.c index 0564f97..51426d8 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; }