Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ca60f6e authored by Krzysztof Helt's avatar Krzysztof Helt Committed by David S. Miller
Browse files

rtc-m48t59: reduce structure m48t59_private



Remove element size from the structure m48t59_private as it is used as
local variable for storing temporary value.

Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5280267c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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(struct platform_device *pdev)
	if (!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;