Skip to content

Commit

Permalink
USB: OHCI: make ohci-platform use dev_err() instead of pr_err()
Browse files Browse the repository at this point in the history
This patch converts the ohci-platform driver to use dev_err() functions
instead of pr_err().

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Florian Fainelli authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 2350cb0 commit 976baf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/host/ohci-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ static int __devinit ohci_platform_probe(struct platform_device *dev)

irq = platform_get_irq(dev, 0);
if (irq < 0) {
pr_err("no irq provided");
dev_err(&dev->dev, "no irq provided");
return irq;
}

res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0);
if (!res_mem) {
pr_err("no memory recourse provided");
dev_err(&dev->dev, "no memory recourse provided");
return -ENXIO;
}

Expand All @@ -128,7 +128,7 @@ static int __devinit ohci_platform_probe(struct platform_device *dev)
hcd->rsrc_len = resource_size(res_mem);

if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) {
pr_err("controller already in use");
dev_err(&dev->dev, "controller already in use");
err = -EBUSY;
goto err_put_hcd;
}
Expand Down

0 comments on commit 976baf6

Please sign in to comment.