Re: [PATCH] rtc: ds1307: fix compile warning if RTC_DRV_DS1307_CENTURY isn't defined
From: Alexandre Belloni <hidden>
Date: 2017-07-06 20:38:12
From: Alexandre Belloni <hidden>
Date: 2017-07-06 20:38:12
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 <redacted>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
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