usb: Use resource_size function
authorPaul Vlase <vlase.paul@gmail.com>
Sun, 10 Mar 2013 13:52:02 +0000 (15:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 18:48:09 +0000 (11:48 -0700)
Signed-off-by: Paul Vlase <vlase.paul@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-mv.c

index 3065809546b159c1966b87f5fe4cdc6c333bc3da..5cd9f96ed92df495147b9791d3cb5c44bc792548 100644 (file)
@@ -225,7 +225,7 @@ static int mv_ehci_probe(struct platform_device *pdev)
                (void __iomem *) ((unsigned long) ehci_mv->cap_regs + offset);
 
        hcd->rsrc_start = r->start;
-       hcd->rsrc_len = r->end - r->start + 1;
+       hcd->rsrc_len = resource_size(r);
        hcd->regs = ehci_mv->op_regs;
 
        hcd->irq = platform_get_irq(pdev, 0);