Skip to content

Commit

Permalink
rtc-vr41xx: use resource_size()
Browse files Browse the repository at this point in the history
Signed-off-by: Yoichi Yuasa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Yoichi Yuasa authored and torvalds committed Dec 16, 2009
1 parent 43d15bc commit a91912f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-vr41xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static int __devinit rtc_probe(struct platform_device *pdev)
if (!res)
return -EBUSY;

rtc1_base = ioremap(res->start, res->end - res->start + 1);
rtc1_base = ioremap(res->start, resource_size(res));
if (!rtc1_base)
return -EBUSY;

Expand All @@ -337,7 +337,7 @@ static int __devinit rtc_probe(struct platform_device *pdev)
goto err_rtc1_iounmap;
}

rtc2_base = ioremap(res->start, res->end - res->start + 1);
rtc2_base = ioremap(res->start, resource_size(res));
if (!rtc2_base) {
retval = -EBUSY;
goto err_rtc1_iounmap;
Expand Down

0 comments on commit a91912f

Please sign in to comment.