Commit 4da24f4d authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

USB: host: ehci-npcm7xx: Fix some error codes in probe

We accidentally return 1 instead of negative error codes.

Fixes: df44831e ("USB host: Add USB ehci support for nuvoton npcm7xx platform")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAvi Fishman <AviFishman70@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc748b66
...@@ -74,14 +74,14 @@ static int npcm7xx_ehci_hcd_drv_probe(struct platform_device *pdev) ...@@ -74,14 +74,14 @@ static int npcm7xx_ehci_hcd_drv_probe(struct platform_device *pdev)
if (IS_ERR(gcr_regmap)) { if (IS_ERR(gcr_regmap)) {
dev_err(&pdev->dev, "%s: failed to find nuvoton,npcm750-gcr\n", dev_err(&pdev->dev, "%s: failed to find nuvoton,npcm750-gcr\n",
__func__); __func__);
return IS_ERR(gcr_regmap); return PTR_ERR(gcr_regmap);
} }
rst_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-rst"); rst_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-rst");
if (IS_ERR(rst_regmap)) { if (IS_ERR(rst_regmap)) {
dev_err(&pdev->dev, "%s: failed to find nuvoton,npcm750-rst\n", dev_err(&pdev->dev, "%s: failed to find nuvoton,npcm750-rst\n",
__func__); __func__);
return IS_ERR(rst_regmap); return PTR_ERR(rst_regmap);
} }
/********* phy init ******/ /********* phy init ******/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment