rtc-m48t59: reduce structure m48t59_private
PATCH 1/2 rtc-m48t59: reduce structure m48t59_private
From: Krzysztof Helt <[email protected]>
Remove element size from the structure m48t59_private as it is used as local variable for storing temporary value.
Signed-off-by Krzysztof Helt <[email protected]>
Signed-off-by Alessandro Zummo <[email protected]>
Cc David Brownell <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/rtc/rtc-m48t59.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/rtc/rtc-m48t59.c renamed from drivers/rtc/rtc-m48t59.c~rtc-m48t59-reduce-structure-m48t59_private +1 -3
@@ -34,7 +34,6 @@struct m48t59_private {void __iomem *ioaddr; -unsigned int size;/* iomem size */ int irq;struct rtc_device *rtc;spinlock_t lock;/* serialize the NVRAM and RTC access */
@@ -403,8 +402,7 @@ static int __devinit m48t59_rtc_probe(stif (!m48t59)return -ENOMEM ; - m48t59->size = res->end - res->start +1 ; - m48t59->ioaddr =ioremap (res->start, m48t59->size); + m48t59->ioaddr =ioremap (res->start, res->end - res->start +1 );if (!m48t59->ioaddr) goto out;
_
David Miller
AppliedFrom: [email protected]
Date: Wed, 03 Sep 2008 14:54:42 -0700
Quoted 7 lines
Remove element size from the structure
m48t59_privateas it is used as local variable for storing temporary value.Signed-off-by Krzysztof Helt <[email protected]>Signed-off-by Alessandro Zummo <[email protected]>Cc David Brownell <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied to sparc-next-2.6