Skip to contentSkip to conversation

ASoC: sgtl5000: fix module device table type for sgtl5000_dt_ids

PATCH Applied Axel Lin 3 participants 3 messages Aug 11, 2011 – Aug 12, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: sgtl5000: fix module device table type for sgtl5000_dt_ids

The module device table for of_device_id should use "of" type.

---
 sound/soc/codecs/sgtl5000.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/sgtl5000.c +1 -1
index 666fae6..91130fb 100644
@@ -1441,7 +1441,7 @@ static const struct of_device_id sgtl5000_dt_ids[] = {
 	{ .compatible = "fsl,sgtl5000", },
 	{ /* sentinel */ }
 };
-MODULE_DEVICE_TABLE(i2c, sgtl5000_dt_ids);
+MODULE_DEVICE_TABLE(of, sgtl5000_dt_ids);
 
 static struct i2c_driver sgtl5000_i2c_driver = {
 	.driver = {
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Axel Lin

The module device table for of_device_id should use "of" type.

---
 sound/soc/codecs/sgtl5000.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/sgtl5000.c +0 -0
index 666fae6..91130fb 100644

sound/soc/codecs/sgtl5000.c static const struct of_device_id sgtl5000_dt_ids[] = { · line 1447

Quoted 8 lines
sound/soc/codecs/sgtl5000.c +1 -1
@@ -1441,7 +1441,7 @@ static const struct of_device_id sgtl5000_dt_ids[] = {
 	{ .compatible = "fsl,sgtl5000", },
 	{ /* sentinel */ }
 };
-MODULE_DEVICE_TABLE(i2c, sgtl5000_dt_ids);
+MODULE_DEVICE_TABLE(of, sgtl5000_dt_ids);
 
 static struct i2c_driver sgtl5000_i2c_driver = {
 	.driver = {