Skip to contentSkip to conversation

ASoC: sh: fix build error: terminate the platform device ID list

PATCH Applied Guennadi Liakhovetski 3 participants 3 messages Oct 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: sh: fix build error: terminate the platform device ID list

Platform driver ID table must be zero-element terminated.

---
 sound/soc/sh/fsi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/sh/fsi.c +1 -0
index 82c6190..dd99633 100644
@@ -1216,6 +1216,7 @@ static struct fsi_core fsi2_core = {
 static struct platform_device_id fsi_id_table[] = {
 	{ "sh_fsi",	(kernel_ulong_t)&fsi1_core },
 	{ "sh_fsi2",	(kernel_ulong_t)&fsi2_core },
+	{},
 };
 MODULE_DEVICE_TABLE(platform, fsi_id_table);
 
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Guennadi Liakhovetski

Platform driver ID table must be zero-element terminated.

---
 sound/soc/sh/fsi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/sh/fsi.c +0 -0
index 82c6190..dd99633 100644

sound/soc/sh/fsi.c static struct fsi_core fsi2_core = { · line 1222

Quoted 7 lines
sound/soc/sh/fsi.c +1 -0
@@ -1216,6 +1216,7 @@ static struct fsi_core fsi2_core = {
 static struct platform_device_id fsi_id_table[] = {
 	{ "sh_fsi",	(kernel_ulong_t)&fsi1_core },
 	{ "sh_fsi2",	(kernel_ulong_t)&fsi2_core },
+	{},
 };
 MODULE_DEVICE_TABLE(platform, fsi_id_table);
 
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk