]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: dwc3: omap: don't check resource with devm_ioremap_resource
authorWolfram Sang <wsa@the-dreams.de>
Tue, 14 Jan 2014 11:58:56 +0000 (12:58 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 18 Feb 2014 16:52:54 +0000 (10:52 -0600)
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-omap.c

index b269dbd47fc41edef682380bcd3637a20371b9ee..80b3357034b7f7f804f1fe6879bcd00a04487683 100644 (file)
@@ -424,11 +424,6 @@ static int dwc3_omap_probe(struct platform_device *pdev)
        }
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (!res) {
-               dev_err(dev, "missing memory base resource\n");
-               return -EINVAL;
-       }
-
        base = devm_ioremap_resource(dev, res);
        if (IS_ERR(base))
                return PTR_ERR(base);