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

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-grlib.c

index 054792c562711d64d84dbe76eaec9183645baed5..495b6fbcbcd9cd4d7dff81f43f3a499962d2d6be 100644 (file)
@@ -113,7 +113,8 @@ static int ehci_hcd_grlib_probe(struct platform_device *op)
 
        irq = irq_of_parse_and_map(dn, 0);
        if (irq == NO_IRQ) {
-               printk(KERN_ERR "%s: irq_of_parse_and_map failed\n", __FILE__);
+               dev_err(&op->dev, "%s: irq_of_parse_and_map failed\n",
+                       __FILE__);
                rv = -EBUSY;
                goto err_irq;
        }