diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2010-01-05 14:01:16 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-03-07 16:16:54 -0500 |
commit | 1ecc09e765d3ae16ef42a4d454836d9ed804fd18 (patch) | |
tree | 17d85d993ad2b917c40b09d1629606a3e7ca0eeb | |
parent | c02e6a5ff43d24d73cf7830c2925e213fc72e037 (diff) |
mfd: Use resouce_size for tc6393xb
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>
-rw-r--r-- | drivers/mfd/tc6393xb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index 4bc5a08a2b09..c59e5c5737d0 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c | |||
@@ -647,7 +647,7 @@ static int __devinit tc6393xb_probe(struct platform_device *dev) | |||
647 | if (ret) | 647 | if (ret) |
648 | goto err_request_scr; | 648 | goto err_request_scr; |
649 | 649 | ||
650 | tc6393xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1); | 650 | tc6393xb->scr = ioremap(rscr->start, resource_size(rscr)); |
651 | if (!tc6393xb->scr) { | 651 | if (!tc6393xb->scr) { |
652 | ret = -ENOMEM; | 652 | ret = -ENOMEM; |
653 | goto err_ioremap; | 653 | goto err_ioremap; |