summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorDan Carpenter2018-06-27 10:37:05 +0200
committerGreg Kroah-Hartman2018-06-28 12:32:42 +0200
commit4da24f4dd0bb2b88e9c84690aa769b524c63b316 (patch)
tree31d55579522b549009a55fd051aad48a63bc82a1 /drivers/usb/host
parentdt-bindings: usb: new ehci-npcm7xx dt (diff)
downloadkernel-qcow2-linux-4da24f4dd0bb2b88e9c84690aa769b524c63b316.tar.gz
kernel-qcow2-linux-4da24f4dd0bb2b88e9c84690aa769b524c63b316.tar.xz
kernel-qcow2-linux-4da24f4dd0bb2b88e9c84690aa769b524c63b316.zip
USB: host: ehci-npcm7xx: Fix some error codes in probe
We accidentally return 1 instead of negative error codes. Fixes: df44831ee2dd ("USB host: Add USB ehci support for nuvoton npcm7xx platform") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Avi Fishman <AviFishman70@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-npcm7xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-npcm7xx.c b/drivers/usb/host/ehci-npcm7xx.c
index c80a8792d3b0..adaf8fb4b459 100644
--- a/drivers/usb/host/ehci-npcm7xx.c
+++ b/drivers/usb/host/ehci-npcm7xx.c
@@ -74,14 +74,14 @@ static int npcm7xx_ehci_hcd_drv_probe(struct platform_device *pdev)
if (IS_ERR(gcr_regmap)) {
dev_err(&pdev->dev, "%s: failed to find nuvoton,npcm750-gcr\n",
__func__);
- return IS_ERR(gcr_regmap);
+ return PTR_ERR(gcr_regmap);
}
rst_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-rst");
if (IS_ERR(rst_regmap)) {
dev_err(&pdev->dev, "%s: failed to find nuvoton,npcm750-rst\n",
__func__);
- return IS_ERR(rst_regmap);
+ return PTR_ERR(rst_regmap);
}
/********* phy init ******/