aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2009-12-14 18:05:02 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 17:53:16 -0500
commit5c90e314a62f09bf4dda4ec5cf50b904540ffa34 (patch)
tree694ceb60f1a17692960dbcda4b065582254b733c /drivers/usb/gadget
parent1af107744253b01b4cf119a9bb3369376b01658b (diff)
USB: pxa27x_udc.c: use resource_size()
Use resource_size(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/pxa27x_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c
index d4c6eec70edc..e8b4b6992a9d 100644
--- a/drivers/usb/gadget/pxa27x_udc.c
+++ b/drivers/usb/gadget/pxa27x_udc.c
@@ -2446,7 +2446,7 @@ static int __init pxa_udc_probe(struct platform_device *pdev)
2446 } 2446 }
2447 2447
2448 retval = -ENOMEM; 2448 retval = -ENOMEM;
2449 udc->regs = ioremap(regs->start, regs->end - regs->start + 1); 2449 udc->regs = ioremap(regs->start, resource_size(regs));
2450 if (!udc->regs) { 2450 if (!udc->regs) {
2451 dev_err(&pdev->dev, "Unable to map UDC I/O memory\n"); 2451 dev_err(&pdev->dev, "Unable to map UDC I/O memory\n");
2452 goto err_map; 2452 goto err_map;