projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
767ffec
)
USB: musb: use resource_size()
author
Felipe Balbi
<felipe.balbi@nokia.com>
Tue, 15 Dec 2009 09:08:42 +0000
(11:08 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 2 Mar 2010 22:53:28 +0000
(14:53 -0800)
it makes ioremap() usage looks cleaner.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/musb/musb_core.c
b/drivers/usb/musb/musb_core.c
index 5eb9318cff77baffd12aef9d4767430df4524dcd..1927fa9f01b283ac72f9a72b4857f64f13ce81e6 100644
(file)
--- a/
drivers/usb/musb/musb_core.c
+++ b/
drivers/usb/musb/musb_core.c
@@
-2134,7
+2134,7
@@
static int __init musb_probe(struct platform_device *pdev)
if (!iomem || irq == 0)
return -ENODEV;
- base = ioremap(iomem->start,
iomem->end - iomem->start + 1
);
+ base = ioremap(iomem->start,
resource_size(iomem)
);
if (!base) {
dev_err(dev, "ioremap failed\n");
return -ENOMEM;