From: Jingoo Han Date: Tue, 10 Dec 2013 12:19:18 +0000 (+0900) Subject: USB: ehci-grlib: use dev_err() instead of printk() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=fc32f116cbcb6b37bcf35db6a05562680b597d6b;p=deliverable%2Flinux.git USB: ehci-grlib: use dev_err() instead of printk() Use dev_err() instead of printk() to provide a better message to userspace. Signed-off-by: Jingoo Han Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-grlib.c b/drivers/usb/host/ehci-grlib.c index 054792c56271..495b6fbcbcd9 100644 --- a/drivers/usb/host/ehci-grlib.c +++ b/drivers/usb/host/ehci-grlib.c @@ -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; }