]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-m41t80.c: remove disabled alarm functionality
authorPaul Bolle <pebolle@tiscali.nl>
Fri, 28 Sep 2012 00:20:40 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 5 Oct 2012 04:01:33 +0000 (14:01 +1000)
commit7ccaf9bdbcf792beee1d6b1a170bcf4b2c6e191f
tree0428e2a23d18c0293f862b7c9d4a8b84b48ebf12
parent7ebb347c668219cd9feae6d21d4cf390796ce975
drivers/rtc/rtc-m41t80.c: remove disabled alarm functionality

Commit c3b79770e51ab1fd ("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>
drivers/rtc/rtc-m41t80.c