Skip to content

Commit

Permalink
USB: pxa27x_udc.c: use resource_size()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 1af1077 commit 5c90e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/pxa27x_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c90e31

Please sign in to comment.