2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 03:33:59 +08:00

USB: EHCI: make ehci-platform use dev_err() instead of pr_err()

This patch converts the ehci-platform driver to make use of the 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>
This commit is contained in:
Florian Fainelli 2012-10-08 15:11:41 +02:00 committed by Greg Kroah-Hartman
parent 216d0fded4
commit 2350cb0cc1

View File

@ -98,12 +98,12 @@ static int __devinit ehci_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;
}
@ -124,7 +124,7 @@ static int __devinit ehci_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;
}