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:
c9f721b
)
usb: dwc3: omap: don't check resource with devm_ioremap_resource
author
Wolfram Sang
<wsa@the-dreams.de>
Tue, 14 Jan 2014 11:58:56 +0000
(12:58 +0100)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 18 Feb 2014 16:52:54 +0000
(10:52 -0600)
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
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 b269dbd47fc41edef682380bcd3637a20371b9ee..80b3357034b7f7f804f1fe6879bcd00a04487683 100644
(file)
--- a/
drivers/usb/dwc3/dwc3-omap.c
+++ b/
drivers/usb/dwc3/dwc3-omap.c
@@
-424,11
+424,6
@@
static int dwc3_omap_probe(struct platform_device *pdev)
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(dev, "missing memory base resource\n");
- return -EINVAL;
- }
-
base = devm_ioremap_resource(dev, res);
if (IS_ERR(base))
return PTR_ERR(base);