Commit 8bbcd17d authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: omap: switch over to devm_ioremap_resource()

use the new devm_ioremap_resource on dwc3-omap.c
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 636e2a2c
...@@ -389,11 +389,9 @@ static int dwc3_omap_probe(struct platform_device *pdev) ...@@ -389,11 +389,9 @@ static int dwc3_omap_probe(struct platform_device *pdev)
return -EINVAL; return -EINVAL;
} }
base = devm_ioremap_nocache(dev, res->start, resource_size(res)); base = devm_ioremap_resource(dev, res);
if (!base) { if (IS_ERR(base))
dev_err(dev, "ioremap failed\n"); return PTR_ERR(base);
return -ENOMEM;
}
spin_lock_init(&omap->lock); spin_lock_init(&omap->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment