usb: dwc3: keystone: remove duplicate check on resource
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>
This commit is contained in:
parent
5a8053099c
commit
4d852011a5
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue