]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rs5c372: fix buffer size
authorWolfram Sang <w.sang@pengutronix.de>
Wed, 22 Dec 2010 01:24:24 +0000 (17:24 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Dec 2010 03:43:34 +0000 (19:43 -0800)
commitc27852d02d6d5f7e700606ed4e488bafc8b90ddf
tree7c77f092c9ea55ddb35a4eec5279638800d2df05
parent1479d0dbde9a1ee1aaf48f86f5ebe8197802669e
rtc: rs5c372: fix buffer size

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-rs5c372.c