aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-ppc-of.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-ppc-of.c')
-rw-r--r--drivers/usb/host/ehci-ppc-of.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-ppc-of.c b/drivers/usb/host/ehci-ppc-of.c
index 45aceefd0c2b..56dc732bf451 100644
--- a/drivers/usb/host/ehci-ppc-of.c
+++ b/drivers/usb/host/ehci-ppc-of.c
@@ -12,6 +12,7 @@
12 * This file is licenced under the GPL. 12 * This file is licenced under the GPL.
13 */ 13 */
14 14
15#include <linux/err.h>
15#include <linux/signal.h> 16#include <linux/signal.h>
16 17
17#include <linux/of.h> 18#include <linux/of.h>
@@ -121,10 +122,9 @@ static int ehci_hcd_ppc_of_probe(struct platform_device *op)
121 goto err_irq; 122 goto err_irq;
122 } 123 }
123 124
124 hcd->regs = devm_request_and_ioremap(&op->dev, &res); 125 hcd->regs = devm_ioremap_resource(&op->dev, &res);
125 if (!hcd->regs) { 126 if (IS_ERR(hcd->regs)) {
126 pr_err("%s: devm_request_and_ioremap failed\n", __FILE__); 127 rv = PTR_ERR(hcd->regs);
127 rv = -ENOMEM;
128 goto err_ioremap; 128 goto err_ioremap;
129 } 129 }
130 130