From: Felipe Balbi Date: Fri, 12 Jul 2013 12:33:35 +0000 (+0300) Subject: usb: dwc3: omap: switch over to devm_ioremap_resource() X-Git-Tag: MMI-PSA29.97-13-9~13781^2~77^2~78 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8bbcd17d6be41a5c0e4a8562e30c8f15c1ceb836;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git usb: dwc3: omap: switch over to devm_ioremap_resource() use the new devm_ioremap_resource on dwc3-omap.c Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index cf209086f3e8..ecd99451ee90 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -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);