mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
USB: ohci-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
0a3aa0d311
commit
63c9b9d3fe
1 changed files with 5 additions and 3 deletions
|
@ -116,21 +116,23 @@ static int ohci_hcd_ppc_of_probe(struct platform_device *op)
|
|||
hcd->rsrc_len = resource_size(&res);
|
||||
|
||||
if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) {
|
||||
printk(KERN_ERR "%s: request_mem_region failed\n", __FILE__);
|
||||
dev_err(&op->dev, "%s: request_mem_region failed\n",
|
||||
__FILE__);
|
||||
rv = -EBUSY;
|
||||
goto err_rmr;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len);
|
||||
if (!hcd->regs) {
|
||||
printk(KERN_ERR "%s: ioremap failed\n", __FILE__);
|
||||
dev_err(&op->dev, "%s: ioremap failed\n", __FILE__);
|
||||
rv = -ENOMEM;
|
||||
goto err_ioremap;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue