aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-11-26 15:27:35 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-04 12:28:50 -0500
commit99d2fae9eb56a0cba060f28d8a8d154f755dedb2 (patch)
tree7ca90169543b5cf9b5c7fec828d33a6fcf92d105 /arch/arm
parentffe300107d931c5cde5383db420b90e856db84ed (diff)
[media] arm: omap2: rx51-peripherals: fix build warning
commit 68a3c0433077 ([media] ARM: OMAP2: RX-51: update si4713 platform data) updated board-rx51-peripherals.c so that si4713 could be easily used on DT boot, but it ended up introducing a build warning whenever si4713 isn't enabled. This patches fixes that warning: arch/arm/mach-omap2/board-rx51-peripherals.c:1000:36: warning: \ ‘rx51_si4713_platform_data’ defined but not used [-Wunused-variable] static struct si4713_platform_data rx51_si4713_platform_data = { Cc: Sebastian Reichel <sre@kernel.org> Cc: Tony Lindgren <tony@atomide.com> Cc: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/board-rx51-peripherals.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
index ec2e4101988b..2fd63fb98e7d 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -1000,9 +1000,11 @@ static struct aic3x_pdata rx51_aic3x_data2 = {
1000 .gpio_reset = 60, 1000 .gpio_reset = 60,
1001}; 1001};
1002 1002
1003#if IS_ENABLED(CONFIG_I2C_SI4713) && IS_ENABLED(CONFIG_PLATFORM_SI4713)
1003static struct si4713_platform_data rx51_si4713_platform_data = { 1004static struct si4713_platform_data rx51_si4713_platform_data = {
1004 .is_platform_device = true 1005 .is_platform_device = true
1005}; 1006};
1007#endif
1006 1008
1007static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_2[] = { 1009static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_2[] = {
1008#if IS_ENABLED(CONFIG_I2C_SI4713) && IS_ENABLED(CONFIG_PLATFORM_SI4713) 1010#if IS_ENABLED(CONFIG_I2C_SI4713) && IS_ENABLED(CONFIG_PLATFORM_SI4713)