Skip to content

Commit 76384f3

Browse files
Sebastian Andrzej Siewioralexandrebelloni
Sebastian Andrzej Siewior
authored andcommitted
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 <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 965271d commit 76384f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-m41t80.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
#define M41T80_FEATURE_WD BIT(3) /* Extra watchdog resolution */
7474
#define M41T80_FEATURE_SQ_ALT BIT(4) /* RSx bits are in reg 4 */
7575

76-
static DEFINE_MUTEX(m41t80_rtc_mutex);
7776
static const struct i2c_device_id m41t80_id[] = {
7877
{ "m41t62", M41T80_FEATURE_SQ | M41T80_FEATURE_SQ_ALT },
7978
{ "m41t65", M41T80_FEATURE_HT | M41T80_FEATURE_WD },
@@ -598,6 +597,7 @@ static struct clk *m41t80_sqw_register_clk(struct m41t80_data *m41t80)
598597
*
599598
*****************************************************************************
600599
*/
600+
static DEFINE_MUTEX(m41t80_rtc_mutex);
601601
static struct i2c_client *save_client;
602602

603603
/* Default margin */

0 commit comments

Comments
 (0)