summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2014-10-29 17:00:18 +0100
committerFelipe Balbi <balbi@ti.com>2014-11-03 17:01:21 +0100
commit768330756d9bbfee6eca573b96c828adb1ba9058 (patch)
tree83c86eb0d698872ef6a5a0a410ccf5a0ce5f411e /drivers/usb/musb
parentusb: phy: rcar-usb: remove duplicate check on resource (diff)
downloadlinux-768330756d9bbfee6eca573b96c828adb1ba9058.tar.xz
linux-768330756d9bbfee6eca573b96c828adb1ba9058.zip
usb: musb: dsps: remove duplicate check on resource
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>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_dsps.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index 6209456861b6..759ef1d236b2 100644
--- 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);