]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv3029: hide unused i2c device table
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 May 2016 09:50:02 +0000 (11:50 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 21 May 2016 15:07:16 +0000 (17:07 +0200)
commit4fe4541a277470b8bd854f61dfabb167c9ec21f8
treed6d10acc54478e6a0a5d04e91f29e7b73bad4cbf
parentc68e0f1f26b27ae7b9b948b0ad75d78fd5386426
rtc: rv3029: hide unused i2c device table

The added support for SPI mode made it possible to configure the driver
when I2C is disabled, leaving an unused device table:

drivers/rtc/rtc-rv3029c2.c:794:29: error: 'rv3029_id' defined but not used [-Werror=unused-variable]

This moves the table inside of the #ifdef section that has the
only user, to avoid the harmless warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: d08f50dd0afc ("rtc: rv3029: Add support of RV3049")
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-rv3029c2.c