]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: dwc3: keystone: remove duplicate check on resource
authorVarka Bhadram <varkabhadram@gmail.com>
Wed, 29 Oct 2014 16:00:15 +0000 (21:30 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:20 +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/dwc3/dwc3-keystone.c

index 7ec8495f45234841efc823871eaf1f29de25219e..dd8d2df6db317d0f084dd5a077bd04d109928673 100644 (file)
@@ -104,11 +104,6 @@ static int kdwc3_probe(struct platform_device *pdev)
        kdwc->dev = dev;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (!res) {
-               dev_err(dev, "missing usbss resource\n");
-               return -EINVAL;
-       }
-
        kdwc->usbss = devm_ioremap_resource(dev, res);
        if (IS_ERR(kdwc->usbss))
                return PTR_ERR(kdwc->usbss);