summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2014-11-04 07:51:31 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-07 09:01:51 -0800
commitec2a4f32b0e1c897f72f4b541a153969b62c2164 (patch)
treef73338c62ebdaf3c0d9f694ecb4bff3a76732c1b /drivers/usb/dwc3
parent7520bee2f1ee18d285877e7c979d4b296458324e (diff)
downloadblackbird-obmc-linux-ec2a4f32b0e1c897f72f4b541a153969b62c2164.tar.gz
blackbird-obmc-linux-ec2a4f32b0e1c897f72f4b541a153969b62c2164.zip
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>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/dwc3-keystone.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/dwc3/dwc3-keystone.c b/drivers/usb/dwc3/dwc3-keystone.c
index 7ec8495f4523..dd8d2df6db31 100644
--- a/drivers/usb/dwc3/dwc3-keystone.c
+++ b/drivers/usb/dwc3/dwc3-keystone.c
@@ -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);
OpenPOWER on IntegriCloud