aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2018-02-09 13:05:34 -0500
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-03-17 09:20:47 -0400
commit76384f319a9adff8cb9a87d64c62f61a5d3b7c09 (patch)
treea273e9451d072696a2627163a2fc89c182015d29 /drivers/rtc
parent965271df5afdc5c641c98e1d5f32310e3ba1a5e1 (diff)
rtc: m41t80: move m41t80_rtc_mutex to the block where it is used
Without CONFIG_RTC_DRV_M41T80_WDT the compiler complains: |drivers/rtc/rtc-m41t80.c:76 ‘m41t80_rtc_mutex’ defined but not used [-Wunused-variable] Move the variable to the block where it is used. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-m41t80.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c
index 1103cdc33bfa..b3e33320c0bf 100644
--- a/drivers/rtc/rtc-m41t80.c
+++ b/drivers/rtc/rtc-m41t80.c
@@ -73,7 +73,6 @@
73#define M41T80_FEATURE_WD BIT(3) /* Extra watchdog resolution */ 73#define M41T80_FEATURE_WD BIT(3) /* Extra watchdog resolution */
74#define M41T80_FEATURE_SQ_ALT BIT(4) /* RSx bits are in reg 4 */ 74#define M41T80_FEATURE_SQ_ALT BIT(4) /* RSx bits are in reg 4 */
75 75
76static DEFINE_MUTEX(m41t80_rtc_mutex);
77static const struct i2c_device_id m41t80_id[] = { 76static const struct i2c_device_id m41t80_id[] = {
78 { "m41t62", M41T80_FEATURE_SQ | M41T80_FEATURE_SQ_ALT }, 77 { "m41t62", M41T80_FEATURE_SQ | M41T80_FEATURE_SQ_ALT },
79 { "m41t65", M41T80_FEATURE_HT | M41T80_FEATURE_WD }, 78 { "m41t65", M41T80_FEATURE_HT | M41T80_FEATURE_WD },
@@ -598,6 +597,7 @@ static struct clk *m41t80_sqw_register_clk(struct m41t80_data *m41t80)
598 * 597 *
599 ***************************************************************************** 598 *****************************************************************************
600 */ 599 */
600static DEFINE_MUTEX(m41t80_rtc_mutex);
601static struct i2c_client *save_client; 601static struct i2c_client *save_client;
602 602
603/* Default margin */ 603/* Default margin */