[PATCH] usb: ehci-omap: Use dev_err in probing time error prints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As these prints in ehci_hcd_omap_probe are printed in case of errors the
dev_err instead of dev_dbg should be used.

Signed-off-by: Jarkko Nikula <jhnikula@xxxxxxxxx>
---
 drivers/usb/host/ehci-omap.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 116ae28..00f72d8 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -606,7 +606,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
 	char supply[7];
 
 	if (!pdata) {
-		dev_dbg(&pdev->dev, "missing platform_data\n");
+		dev_err(&pdev->dev, "missing platform_data\n");
 		goto err_pdata;
 	}
 
@@ -622,7 +622,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
 	hcd = usb_create_hcd(&ehci_omap_hc_driver, &pdev->dev,
 			dev_name(&pdev->dev));
 	if (!hcd) {
-		dev_dbg(&pdev->dev, "failed to create hcd with err %d\n", ret);
+		dev_err(&pdev->dev, "failed to create hcd with err %d\n", ret);
 		ret = -ENOMEM;
 		goto err_create_hcd;
 	}
@@ -681,8 +681,8 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
 		omap->regulator[i] = regulator_get(omap->dev, supply);
 		if (IS_ERR(omap->regulator[i])) {
 			omap->regulator[i] = NULL;
-			dev_dbg(&pdev->dev,
-			"failed to get ehci port%d regulator\n", i);
+			dev_err(&pdev->dev,
+				"failed to get ehci port%d regulator\n", i);
 		} else {
 			regulator_enable(omap->regulator[i]);
 		}
@@ -690,7 +690,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
 
 	ret = omap_start_ehc(omap, hcd);
 	if (ret) {
-		dev_dbg(&pdev->dev, "failed to start ehci\n");
+		dev_err(&pdev->dev, "failed to start ehci\n");
 		goto err_start;
 	}
 
@@ -705,7 +705,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
 
 	ret = usb_add_hcd(hcd, irq, IRQF_DISABLED | IRQF_SHARED);
 	if (ret) {
-		dev_dbg(&pdev->dev, "failed to add hcd with err %d\n", ret);
+		dev_err(&pdev->dev, "failed to add hcd with err %d\n", ret);
 		goto err_add_hcd;
 	}
 
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux