summaryrefslogtreecommitdiffstats
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 14:53:16 -0800
commit5c90e314a62f09bf4dda4ec5cf50b904540ffa34 (patch)
tree694ceb60f1a17692960dbcda4b065582254b733c /drivers/usb/gadget
parent1af107744253b01b4cf119a9bb3369376b01658b (diff)
downloadtalos-op-linux-5c90e314a62f09bf4dda4ec5cf50b904540ffa34.tar.gz
talos-op-linux-5c90e314a62f09bf4dda4ec5cf50b904540ffa34.zip
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)
}
retval = -ENOMEM;
- udc->regs = ioremap(regs->start, regs->end - regs->start + 1);
+ udc->regs = ioremap(regs->start, resource_size(regs));
if (!udc->regs) {
dev_err(&pdev->dev, "Unable to map UDC I/O memory\n");
goto err_map;
OpenPOWER on IntegriCloud