From: Varka Bhadram Date: Wed, 29 Oct 2014 16:00:18 +0000 (+0530) Subject: usb: musb: dsps: remove duplicate check on resource X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=768330756d9bbfee6eca573b96c828adb1ba9058;p=openwrt%2Fstaging%2Fblogic.git usb: musb: dsps: remove duplicate check on resource Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Signed-off-by: Felipe Balbi --- 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);