diff options
author | Felipe Balbi <balbi@ti.com> | 2013-07-12 12:33:35 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-29 10:56:53 (GMT) |
commit | 8bbcd17d6be41a5c0e4a8562e30c8f15c1ceb836 (patch) | |
tree | 4d7d41ca1296243849d183ba7bb9d01e44a1bb64 /drivers/usb/dwc3 | |
parent | 636e2a2caeafcb1b55b6799b29fe436039819eb9 (diff) | |
download | linux-8bbcd17d6be41a5c0e4a8562e30c8f15c1ceb836.tar.xz |
usb: dwc3: omap: switch over to devm_ioremap_resource()
use the new devm_ioremap_resource on dwc3-omap.c
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/dwc3-omap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index cf20908..ecd9945 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); |