diff options
Diffstat (limited to 'drivers/usb/musb/tusb6010.c')
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 88b587c703e9..ab776a8d98ca 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c | |||
@@ -1118,7 +1118,7 @@ int __init musb_platform_init(struct musb *musb) | |||
1118 | } | 1118 | } |
1119 | musb->sync = mem->start; | 1119 | musb->sync = mem->start; |
1120 | 1120 | ||
1121 | sync = ioremap(mem->start, mem->end - mem->start + 1); | 1121 | sync = ioremap(mem->start, resource_size(mem)); |
1122 | if (!sync) { | 1122 | if (!sync) { |
1123 | pr_debug("ioremap for sync failed\n"); | 1123 | pr_debug("ioremap for sync failed\n"); |
1124 | ret = -ENOMEM; | 1124 | ret = -ENOMEM; |