Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 187024b3 authored by Krishna Mohan Dani's avatar Krishna Mohan Dani Committed by Mark Brown
Browse files

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: default avatarClaude Youn <claude.youn@gmail.com>
Signed-off-by: default avatarKrishna Mohan Dani <krishna.md@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 189c88ce
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,