summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-sh.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-27 11:24:44 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-27 11:24:44 -0700
commitf956c4da990e2f047d6477e2e325807309be613c (patch)
treea9d97ba66a84df0381556fb82f5788c62c909ad9 /drivers/usb/host/ohci-sh.c
parent1041ac11981288a2e730c6f5d5383c596b366410 (diff)
downloadlinux-f956c4da990e2f047d6477e2e325807309be613c.tar.gz
linux-f956c4da990e2f047d6477e2e325807309be613c.tar.bz2
linux-f956c4da990e2f047d6477e2e325807309be613c.zip
USB: ohci-sh.c: remove err() usage
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. CC: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-sh.c')
-rw-r--r--drivers/usb/host/ohci-sh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ohci-sh.c b/drivers/usb/host/ohci-sh.c
index 84686d90805b..76a20c278362 100644
--- a/drivers/usb/host/ohci-sh.c
+++ b/drivers/usb/host/ohci-sh.c
@@ -88,20 +88,20 @@ static int ohci_hcd_sh_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
- err("platform_get_resource error.");
+ dev_err(&pdev->dev, "platform_get_resource error.\n");
return -ENODEV;
}
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
- err("platform_get_irq error.");
+ dev_err(&pdev->dev, "platform_get_irq error.\n");
return -ENODEV;
}
/* initialize hcd */
hcd = usb_create_hcd(&ohci_sh_hc_driver, &pdev->dev, (char *)hcd_name);
if (!hcd) {
- err("Failed to create hcd");
+ dev_err(&pdev->dev, "Failed to create hcd\n");
return -ENOMEM;
}
@@ -110,7 +110,7 @@ static int ohci_hcd_sh_probe(struct platform_device *pdev)
hcd->rsrc_len = resource_size(res);
ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
if (ret != 0) {
- err("Failed to add hcd");
+ dev_err(&pdev->dev, "Failed to add hcd\n");
usb_put_hcd(hcd);
return ret;
}