summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-xilinx-of.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-10 21:24:24 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-18 16:32:41 -0800
commita74cf5ccbd489c54c7531af94cc19cd88a41a7b9 (patch)
treed17d7c924618dac16a03545be3216cfcef5906f9 /drivers/usb/host/ehci-xilinx-of.c
parent346c8b241cb1b9de7a5b79d1b022988f55f2c85d (diff)
downloadop-kernel-dev-a74cf5ccbd489c54c7531af94cc19cd88a41a7b9.zip
op-kernel-dev-a74cf5ccbd489c54c7531af94cc19cd88a41a7b9.tar.gz
USB: ehci-xilinx-of: use dev_err() instead of printk()
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>
Diffstat (limited to 'drivers/usb/host/ehci-xilinx-of.c')
-rw-r--r--drivers/usb/host/ehci-xilinx-of.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-xilinx-of.c b/drivers/usb/host/ehci-xilinx-of.c
index 3cd2efa..fe57710 100644
--- a/drivers/usb/host/ehci-xilinx-of.c
+++ b/drivers/usb/host/ehci-xilinx-of.c
@@ -155,7 +155,8 @@ static int ehci_hcd_xilinx_of_probe(struct platform_device *op)
irq = irq_of_parse_and_map(dn, 0);
if (!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;
}
OpenPOWER on IntegriCloud