Skip to content

Commit

Permalink
usb: dwc3: keystone: remove duplicate check on resource
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Varka Bhadram authored and Felipe Balbi committed Nov 3, 2014
1 parent 5a80530 commit 4d85201
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/usb/dwc3/dwc3-keystone.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d85201

Please sign in to comment.