diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-10 13:21:52 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-19 01:32:41 +0100 |
commit | 346c8b241cb1b9de7a5b79d1b022988f55f2c85d (patch) | |
tree | 15756d99279391fa4d2e819d437640bedc1676fd /drivers/usb/host/ehci-ppc-of.c | |
parent | USB: ehci-orion: use dev_warn() instead of printk() (diff) | |
download | linux-346c8b241cb1b9de7a5b79d1b022988f55f2c85d.tar.xz linux-346c8b241cb1b9de7a5b79d1b022988f55f2c85d.zip |
USB: ehci-ppc-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-ppc-of.c')
-rw-r--r-- | drivers/usb/host/ehci-ppc-of.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-ppc-of.c b/drivers/usb/host/ehci-ppc-of.c index b0965eb6c0db..547924796d29 100644 --- a/drivers/usb/host/ehci-ppc-of.c +++ b/drivers/usb/host/ehci-ppc-of.c @@ -119,7 +119,8 @@ static int ehci_hcd_ppc_of_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; } |