Commit 195e9e46 authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman

USB: musb: use resource_size()

it makes ioremap() usage looks cleaner.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 767ffec1
...@@ -2134,7 +2134,7 @@ static int __init musb_probe(struct platform_device *pdev) ...@@ -2134,7 +2134,7 @@ static int __init musb_probe(struct platform_device *pdev)
if (!iomem || irq == 0) if (!iomem || irq == 0)
return -ENODEV; return -ENODEV;
base = ioremap(iomem->start, iomem->end - iomem->start + 1); base = ioremap(iomem->start, resource_size(iomem));
if (!base) { if (!base) {
dev_err(dev, "ioremap failed\n"); dev_err(dev, "ioremap failed\n");
return -ENOMEM; return -ENOMEM;
......
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