diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-12-15 00:05:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 23:53:16 +0100 |
commit | 5c90e314a62f09bf4dda4ec5cf50b904540ffa34 (patch) | |
tree | 694ceb60f1a17692960dbcda4b065582254b733c /drivers/usb/gadget/pxa27x_udc.c | |
parent | USB: ehci-fsl: Add power management support (diff) | |
download | linux-5c90e314a62f09bf4dda4ec5cf50b904540ffa34.tar.xz 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/pxa27x_udc.c')
-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; |