mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
USB: musb: use resource_size()
it makes ioremap() usage looks cleaner. Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
767ffec15e
commit
195e9e4691
@ -2134,7 +2134,7 @@ static int __init musb_probe(struct platform_device *pdev)
|
||||
if (!iomem || irq == 0)
|
||||
return -ENODEV;
|
||||
|
||||
base = ioremap(iomem->start, iomem->end - iomem->start + 1);
|
||||
base = ioremap(iomem->start, resource_size(iomem));
|
||||
if (!base) {
|
||||
dev_err(dev, "ioremap failed\n");
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user