aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;