forked from Minki/linux
dwc3: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7520bee2f1
commit
ec2a4f32b0
@ -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 New Issue
Block a user