On 06/07/2017 at 22:03:12 +0200, Heiner Kallweit wrote: > Fix the following warning if RTC_DRV_DS1307_CENTURY isn't defined. > > drivers/rtc/rtc-ds1307.c: In function 'ds1307_get_time': > drivers/rtc/rtc-ds1307.c:342:26: warning: unused variable 'chip' [-Wunused-variable] > const struct chip_desc *chip = &chips[ds1307->type]; > ^ > Fixes: 436c93db60a4 ("rtc: ds1307: factor out century bit handling") > Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> > Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx> > --- > drivers/rtc/rtc-ds1307.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > I've squashed it in the original commit, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com