rtc: use set_mmss when set_time is not available
authorAlessandro Zummo <a.zummo@towertech.it>
Tue, 6 Jan 2009 22:42:21 +0000 (14:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:25 +0000 (15:59 -0800)
commitbbccf83f6c4e1a0de5bdf51ec9ec708d3a1ce933
tree8c9797c7914b0f7fc78e5878ef33ae5f3219a202
parentf60091575d43e5a27b26f4d6fa4251cdd6b9ae8a
rtc: use set_mmss when set_time is not available

Drivers should only need to implement either set_mmss (counter based RTCs)
or set_time (most RTCs).  The RTC subsystem will handle them
appropriately.

Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: David Brownell <david-b@pacbell.net>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/interface.c
drivers/rtc/rtc-ds1672.c
drivers/rtc/rtc-ep93xx.c
drivers/rtc/rtc-test.c