forked from Minki/linux
USB: musb: tusb6010: use resource_size
Trivial patch, no functional changes. Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
c58bfa6b97
commit
3d268645d5
@ -1118,7 +1118,7 @@ int __init musb_platform_init(struct musb *musb)
|
||||
}
|
||||
musb->sync = mem->start;
|
||||
|
||||
sync = ioremap(mem->start, mem->end - mem->start + 1);
|
||||
sync = ioremap(mem->start, resource_size(mem));
|
||||
if (!sync) {
|
||||
pr_debug("ioremap for sync failed\n");
|
||||
ret = -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user