diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-12-14 18:05:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 14:53:16 -0800 |
commit | 5c90e314a62f09bf4dda4ec5cf50b904540ffa34 (patch) | |
tree | 694ceb60f1a17692960dbcda4b065582254b733c /drivers/usb | |
parent | 1af107744253b01b4cf119a9bb3369376b01658b (diff) | |
download | blackbird-op-linux-5c90e314a62f09bf4dda4ec5cf50b904540ffa34.tar.gz blackbird-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')
-rw-r--r-- | drivers/usb/gadget/pxa27x_udc.c | 2 |
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; |