usb: dwc3: omap: switch over to devm_ioremap_resource()
authorFelipe Balbi <balbi@ti.com>
Fri, 12 Jul 2013 12:33:35 +0000 (15:33 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:56:53 +0000 (13:56 +0300)
use the new devm_ioremap_resource on dwc3-omap.c

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-omap.c

index cf20908..ecd9945 100644 (file)
@@ -389,11 +389,9 @@ static int dwc3_omap_probe(struct platform_device *pdev)
                return -EINVAL;
        }
 
-       base = devm_ioremap_nocache(dev, res->start, resource_size(res));
-       if (!base) {
-               dev_err(dev, "ioremap failed\n");
-               return -ENOMEM;
-       }
+       base = devm_ioremap_resource(dev, res);
+       if (IS_ERR(base))
+               return PTR_ERR(base);
 
        spin_lock_init(&omap->lock);