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:
7683307
)
usb: musb: core: remove duplicate check on resource
author
Varka Bhadram
<varkabhadram@gmail.com>
Wed, 29 Oct 2014 16:00:19 +0000
(21:30 +0530)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 3 Nov 2014 16:01:21 +0000
(10:01 -0600)
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/musb/musb_core.c
b/drivers/usb/musb/musb_core.c
index b841ee0bff067ceb97835c5bf1371ca74d509a77..55ebd4b1daac9de11892e83430bfca614ee2419e 100644
(file)
--- a/
drivers/usb/musb/musb_core.c
+++ b/
drivers/usb/musb/musb_core.c
@@
-2080,10
+2080,10
@@
static int musb_probe(struct platform_device *pdev)
struct resource *iomem;
void __iomem *base;
- iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!iomem || irq <= 0)
+ if (irq <= 0)
return -ENODEV;
+ iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(dev, iomem);
if (IS_ERR(base))
return PTR_ERR(base);