rtc: rs5c372: fix buffer size
authorWolfram Sang <w.sang@pengutronix.de>
Wed, 22 Dec 2010 01:24:24 +0000 (17:24 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:42 +0000 (13:58 -0800)
commit879ef03a76c5169898a121e988f3eaaabb95d73a
tree1c98e47401a1c6f197cc3eb9ace937dbd7d343a7
parentc9009e7208be5a127d302a63602af1a6f15b17d9
rtc: rs5c372: fix buffer size

commit 118364948fad7b6c0469ef2d3ddaee447d7a0b5f upstream.

Match the buffer size to the amount of initialized values.  Before, it was
one too big and thus destroyed the neighbouring register causing the clock
to run at false speeds.

Reported-by: Andre van Rooyen <a.v.rooyen@sercom.nl>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/rtc/rtc-rs5c372.c