diff options
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-m48t59.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c index 013e6c103b9c..e085ab2c3dbe 100644 --- a/drivers/rtc/rtc-m48t59.c +++ b/drivers/rtc/rtc-m48t59.c | |||
@@ -34,7 +34,6 @@ | |||
34 | 34 | ||
35 | struct m48t59_private { | 35 | struct m48t59_private { |
36 | void __iomem *ioaddr; | 36 | void __iomem *ioaddr; |
37 | unsigned int size; /* iomem size */ | ||
38 | int irq; | 37 | int irq; |
39 | struct rtc_device *rtc; | 38 | struct rtc_device *rtc; |
40 | spinlock_t lock; /* serialize the NVRAM and RTC access */ | 39 | spinlock_t lock; /* serialize the NVRAM and RTC access */ |
@@ -403,8 +402,7 @@ static int __devinit m48t59_rtc_probe(struct platform_device *pdev) | |||
403 | if (!m48t59) | 402 | if (!m48t59) |
404 | return -ENOMEM; | 403 | return -ENOMEM; |
405 | 404 | ||
406 | m48t59->size = res->end - res->start + 1; | 405 | m48t59->ioaddr = ioremap(res->start, res->end - res->start + 1); |
407 | m48t59->ioaddr = ioremap(res->start, m48t59->size); | ||
408 | if (!m48t59->ioaddr) | 406 | if (!m48t59->ioaddr) |
409 | goto out; | 407 | goto out; |
410 | 408 | ||