]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-m41t80.c: remove disabled alarm functionality
authorPaul Bolle <pebolle@tiscali.nl>
Fri, 5 Oct 2012 00:14:35 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:07 +0000 (03:05 +0900)
commita50f1db7a5af3d76cf6889311ae6ea9c54b69eb7
treeb9bea4658ca2e7d3f0304a803ceb1195fbaac596
parentfa5073e2d0a86e9047ca2a2fa2a3b09b0ea9d25c
drivers/rtc/rtc-m41t80.c: remove disabled alarm functionality

Commit ad4fc7380b6f ("rtc: m41t80: Workaround broken alarm
functionality") disabled m41t80's alarm functions.  But since those
functions were not touched, building this driver triggers these GCC
warnings:

    drivers/rtc/rtc-m41t80.c:216:12: warning: 'm41t80_rtc_alarm_irq_enable' defined but not used [-Wunused-function]
    drivers/rtc/rtc-m41t80.c:238:12: warning: 'm41t80_rtc_set_alarm' defined but not used [-Wunused-function]
    drivers/rtc/rtc-m41t80.c:308:12: warning: 'm41t80_rtc_read_alarm' defined but not used [-Wunused-function]

Remove these functions (and the commented out references to them) to
silence these warnings.  Anyone wanting to fix the alarm irq functionality
can easily find the removed code in the git log of this file or through
some web searches.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-m41t80.c