Skip to content
Snippets Groups Projects
Commit 976baf6e authored by Florian Fainelli's avatar Florian Fainelli Committed by Greg Kroah-Hartman
Browse files

USB: OHCI: make ohci-platform use dev_err() instead of pr_err()


This patch converts the ohci-platform driver to use dev_err() functions
instead of pr_err().

Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2350cb0c
No related branches found
No related tags found
No related merge requests found
...@@ -101,13 +101,13 @@ static int __devinit ohci_platform_probe(struct platform_device *dev) ...@@ -101,13 +101,13 @@ static int __devinit ohci_platform_probe(struct platform_device *dev)
irq = platform_get_irq(dev, 0); irq = platform_get_irq(dev, 0);
if (irq < 0) { if (irq < 0) {
pr_err("no irq provided"); dev_err(&dev->dev, "no irq provided");
return irq; return irq;
} }
res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0);
if (!res_mem) { if (!res_mem) {
pr_err("no memory recourse provided"); dev_err(&dev->dev, "no memory recourse provided");
return -ENXIO; return -ENXIO;
} }
...@@ -128,7 +128,7 @@ static int __devinit ohci_platform_probe(struct platform_device *dev) ...@@ -128,7 +128,7 @@ static int __devinit ohci_platform_probe(struct platform_device *dev)
hcd->rsrc_len = resource_size(res_mem); hcd->rsrc_len = resource_size(res_mem);
if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { 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; err = -EBUSY;
goto err_put_hcd; goto err_put_hcd;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment