aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishna Mohan Dani <krishna.md@samsung.com>2014-11-17 08:56:29 -0500
committerMark Brown <broonie@kernel.org>2014-11-17 09:51:40 -0500
commit187024b36c635bd454c1b1587b58c9439d3a46ad (patch)
tree1af82cb92e959b69292c091856d2de6200e541a7
parent189c88ced169d5197c806828e275c6f063b1d499 (diff)
ASoC: rt5631: Fixing compilation warning when DT is disabled
Fixes the following compilation warning: Warning: 'rt5631_i2c_dt_ids' defined but not used - when DT is not used. Signed-off-by: Claude Youn <claude.youn@gmail.com> Signed-off-by: Krishna Mohan Dani <krishna.md@samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/rt5631.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5631.c b/sound/soc/codecs/rt5631.c
index 3b7d5e4a3ef6..9425545e8403 100644
--- a/sound/soc/codecs/rt5631.c
+++ b/sound/soc/codecs/rt5631.c
@@ -1691,12 +1691,14 @@ static const struct i2c_device_id rt5631_i2c_id[] = {
1691}; 1691};
1692MODULE_DEVICE_TABLE(i2c, rt5631_i2c_id); 1692MODULE_DEVICE_TABLE(i2c, rt5631_i2c_id);
1693 1693
1694#ifdef CONFIG_OF
1694static struct of_device_id rt5631_i2c_dt_ids[] = { 1695static struct of_device_id rt5631_i2c_dt_ids[] = {
1695 { .compatible = "realtek,rt5631"}, 1696 { .compatible = "realtek,rt5631"},
1696 { .compatible = "realtek,alc5631"}, 1697 { .compatible = "realtek,alc5631"},
1697 { } 1698 { }
1698}; 1699};
1699MODULE_DEVICE_TABLE(of, rt5631_i2c_dt_ids); 1700MODULE_DEVICE_TABLE(of, rt5631_i2c_dt_ids);
1701#endif
1700 1702
1701static const struct regmap_config rt5631_regmap_config = { 1703static const struct regmap_config rt5631_regmap_config = {
1702 .reg_bits = 8, 1704 .reg_bits = 8,