Skip to content

Commit

Permalink
mfd: Use resouce_size for tc6393xb
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Samuel Ortiz committed Mar 7, 2010
1 parent c02e6a5 commit 1ecc09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/tc6393xb.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ static int __devinit tc6393xb_probe(struct platform_device *dev)
if (ret)
goto err_request_scr;

tc6393xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1);
tc6393xb->scr = ioremap(rscr->start, resource_size(rscr));
if (!tc6393xb->scr) {
ret = -ENOMEM;
goto err_ioremap;
Expand Down

0 comments on commit 1ecc09e

Please sign in to comment.