forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
fb53e9467e
commit
346c8b241c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user