ASoC: rt5631: Fixing compilation warning when DT is disabled
authorKrishna Mohan Dani <krishna.md@samsung.com>
Mon, 17 Nov 2014 13:56:29 +0000 (19:26 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 17 Nov 2014 14:51:40 +0000 (14:51 +0000)
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>
sound/soc/codecs/rt5631.c

index 3b7d5e4a3ef69e510b273a4bd3cb21c07b15ea2f..9425545e84032308937094f16633bb3f61b59ccf 100644 (file)
@@ -1691,12 +1691,14 @@ static const struct i2c_device_id rt5631_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, rt5631_i2c_id);
 
+#ifdef CONFIG_OF
 static struct of_device_id rt5631_i2c_dt_ids[] = {
        { .compatible = "realtek,rt5631"},
        { .compatible = "realtek,alc5631"},
        { }
 };
 MODULE_DEVICE_TABLE(of, rt5631_i2c_dt_ids);
+#endif
 
 static const struct regmap_config rt5631_regmap_config = {
        .reg_bits = 8,