USB: ehci-orion: use dev_warn() instead of printk()
authorJingoo Han <jg1.han@samsung.com>
Tue, 10 Dec 2013 12:20:30 +0000 (21:20 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2013 00:32:41 +0000 (16:32 -0800)
Use dev_warn() instead of printk() to provide a better message
to userspace.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-orion.c

index aa8b92bf53610e6d0cbca0824cb171d93d79dfe7..4ca61203feadd619cce3b76186ce55e41751974e 100644 (file)
@@ -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);