USB: musb: tusb6010: use resource_size
authorFelipe Balbi <felipe.balbi@nokia.com>
Thu, 21 Jan 2010 13:33:56 +0000 (15:33 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:42 +0000 (14:54 -0800)
Trivial patch, no functional changes.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/tusb6010.c

index 88b587c..ab776a8 100644 (file)
@@ -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;