rtc: m41t80: move m41t80_rtc_mutex to the block where it is used
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 9 Feb 2018 18:05:34 +0000 (19:05 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 17 Mar 2018 13:20:47 +0000 (14:20 +0100)
commit76384f319a9adff8cb9a87d64c62f61a5d3b7c09
treea273e9451d072696a2627163a2fc89c182015d29
parent965271df5afdc5c641c98e1d5f32310e3ba1a5e1
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>
drivers/rtc/rtc-m41t80.c