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>
This commit is contained in:
parent
1af1077442
commit
5c90e314a6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue