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:
committed by
Greg Kroah-Hartman
parent
c58bfa6b97
commit
3d268645d5
@@ -1118,7 +1118,7 @@ int __init musb_platform_init(struct musb *musb)
|
|||||||
}
|
}
|
||||||
musb->sync = mem->start;
|
musb->sync = mem->start;
|
||||||
|
|
||||||
sync = ioremap(mem->start, mem->end - mem->start + 1);
|
sync = ioremap(mem->start, resource_size(mem));
|
||||||
if (!sync) {
|
if (!sync) {
|
||||||
pr_debug("ioremap for sync failed\n");
|
pr_debug("ioremap for sync failed\n");
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
|
Reference in New Issue
Block a user