Use dev_warn() instead of printk() to provide a better message
to userspace.

Signed-off-by: Jingoo Han <jg1....@samsung.com>
---
 drivers/usb/host/ehci-orion.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c
index aa8b92b..4ca6120 100644
--- a/drivers/usb/host/ehci-orion.c
+++ b/drivers/usb/host/ehci-orion.c
@@ -245,7 +245,7 @@ static int ehci_orion_drv_probe(struct platform_device 
*pdev)
        case EHCI_PHY_DD:
        case EHCI_PHY_KW:
        default:
-               printk(KERN_WARNING "Orion ehci -USB phy version isn't 
supported.\n");
+               dev_warn(&pdev->dev, "USB phy version isn't supported.\n");
        }
 
        err = usb_add_hcd(hcd, irq, IRQF_SHARED);
-- 
1.7.10.4


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

Reply via email to