projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1af1077
)
USB: pxa27x_udc.c: use resource_size()
author
H Hartley Sweeten
<hartleys@visionengravers.com>
Mon, 14 Dec 2009 23:05:02 +0000
(18:05 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 2 Mar 2010 22:53:16 +0000
(14:53 -0800)
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>
drivers/usb/gadget/pxa27x_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/pxa27x_udc.c
b/drivers/usb/gadget/pxa27x_udc.c
index
d4c6eec
..
e8b4b69
100644
(file)
--- 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, re
gs->end - regs->start + 1
);
+ udc->regs = ioremap(regs->start, re
source_size(regs)
);
if (!udc->regs) {
dev_err(&pdev->dev, "Unable to map UDC I/O memory\n");
goto err_map;