projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
636e2a2
)
usb: dwc3: omap: switch over to devm_ioremap_resource()
author
Felipe Balbi
<balbi@ti.com>
Fri, 12 Jul 2013 12:33:35 +0000
(15:33 +0300)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 29 Jul 2013 10:56:53 +0000
(13:56 +0300)
use the new devm_ioremap_resource on dwc3-omap.c
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-omap.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/dwc3/dwc3-omap.c
b/drivers/usb/dwc3/dwc3-omap.c
index cf209086f3e89e455a6a5a952409cfd312544efd..ecd99451ee90d3faf53b6e2c04e7514243b65627 100644
(file)
--- a/
drivers/usb/dwc3/dwc3-omap.c
+++ b/
drivers/usb/dwc3/dwc3-omap.c
@@
-389,11
+389,9
@@
static int dwc3_omap_probe(struct platform_device *pdev)
return -EINVAL;
}
- base = devm_ioremap_nocache(dev, res->start, resource_size(res));
- if (!base) {
- dev_err(dev, "ioremap failed\n");
- return -ENOMEM;
- }
+ base = devm_ioremap_resource(dev, res);
+ if (IS_ERR(base))
+ return PTR_ERR(base);
spin_lock_init(&omap->lock);