diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-10-08 09:11:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-22 14:30:25 -0400 |
commit | 2350cb0cc1303d47b43fc60cf06c19dd145b2eb5 (patch) | |
tree | 62fcdc887c5de8704b6a1b1015ab09f4ae32ad3f /drivers/usb/host | |
parent | 216d0fded417d26a19049038788813af126b9d66 (diff) |
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>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-platform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index 607adf9adb83..6516717edbfc 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c | |||
@@ -98,12 +98,12 @@ static int __devinit ehci_platform_probe(struct platform_device *dev) | |||
98 | 98 | ||
99 | irq = platform_get_irq(dev, 0); | 99 | irq = platform_get_irq(dev, 0); |
100 | if (irq < 0) { | 100 | if (irq < 0) { |
101 | pr_err("no irq provided"); | 101 | dev_err(&dev->dev, "no irq provided"); |
102 | return irq; | 102 | return irq; |
103 | } | 103 | } |
104 | res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); | 104 | res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); |
105 | if (!res_mem) { | 105 | if (!res_mem) { |
106 | pr_err("no memory recourse provided"); | 106 | dev_err(&dev->dev, "no memory recourse provided"); |
107 | return -ENXIO; | 107 | return -ENXIO; |
108 | } | 108 | } |
109 | 109 | ||
@@ -124,7 +124,7 @@ static int __devinit ehci_platform_probe(struct platform_device *dev) | |||
124 | hcd->rsrc_len = resource_size(res_mem); | 124 | hcd->rsrc_len = resource_size(res_mem); |
125 | 125 | ||
126 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { | 126 | if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { |
127 | pr_err("controller already in use"); | 127 | dev_err(&dev->dev, "controller already in use"); |
128 | err = -EBUSY; | 128 | err = -EBUSY; |
129 | goto err_put_hcd; | 129 | goto err_put_hcd; |
130 | } | 130 | } |