projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
311e54c
)
mfd: Use resource_size() for t7l66xb
author
H Hartley Sweeten
<hartleys@visionengravers.com>
Tue, 5 Jan 2010 18:58:34 +0000
(19:58 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Sun, 7 Mar 2010 21:16:53 +0000
(22:16 +0100)
Use resource_size() for ioremap.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/t7l66xb.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/t7l66xb.c
b/drivers/mfd/t7l66xb.c
index
bcf4687
..
e0bbddd
100644
(file)
--- a/
drivers/mfd/t7l66xb.c
+++ b/
drivers/mfd/t7l66xb.c
@@
-360,7
+360,7
@@
static int t7l66xb_probe(struct platform_device *dev)
if (ret)
goto err_request_scr;
- t7l66xb->scr = ioremap(rscr->start, r
scr->end - rscr->start + 1
);
+ t7l66xb->scr = ioremap(rscr->start, r
esource_size(rscr)
);
if (!t7l66xb->scr) {
ret = -ENOMEM;
goto err_ioremap;