mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
rtc-vr41xx: use resource_size()
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
43d15bcd4b
commit
a91912f8e4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue