OSDN Git Service
(root)
/
android-x86
/
kernel.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
|
history
diff --git
a/drivers/usb/dwc3/dwc3-omap.c
b/drivers/usb/dwc3/dwc3-omap.c
index
cf20908
..
ecd9945
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);