projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
972b983
)
musb: musb_dsps: remove duplicate check on resource
author
Varka Bhadram
<varkabhadram@gmail.com>
Tue, 4 Nov 2014 02:21:29 +0000
(07:51 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:01:51 +0000
(09:01 -0800)
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/musb_dsps.c
b/drivers/usb/musb/musb_dsps.c
index 48bc09e7b83b2855a9384b0d646322cb565be6fb..965c552f7035c891d5e163e1d7cb6d3230a30f71 100644
(file)
--- a/
drivers/usb/musb/musb_dsps.c
+++ b/
drivers/usb/musb/musb_dsps.c
@@
-447,9
+447,6
@@
static int dsps_musb_init(struct musb *musb)
int ret;
r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control");
- if (!r)
- return -EINVAL;
-
reg_base = devm_ioremap_resource(dev, r);
if (IS_ERR(reg_base))
return PTR_ERR(reg_base);