usb: musb: dsps: remove duplicate check on resource
authorVarka Bhadram <varkabhadram@gmail.com>
Wed, 29 Oct 2014 16:00:18 +0000 (21:30 +0530)
committerFelipe 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_dsps.c

index 6209456861b6996bdcfcd30544c5f144b82ca0f4..759ef1d236b28046ce8531364d83851789624b31 100644 (file)
@@ -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);