From: Takashi Iwai Date: Fri, 12 Aug 2011 16:22:10 +0000 (+0200) Subject: ASoC: Fix compile warning in wm8750.c X-Git-Tag: MMI-PSA29.97-13-9~18301^2~44 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6b864a9071e21186476910613ec9913b56067a2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: Fix compile warning in wm8750.c sound/soc/codecs/wm8750.c:784:2: warning: missing braces around initializer sound/soc/codecs/wm8750.c:784:2: warning: (near initialization for ‘wm8750_spi_ids[2].name’) It's because struct spi_device_id.name is a char array, not a pointer, while the driver initializes explicitly with 0. Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c index 82ac5fcaa2b2..d0003cc3bcd6 100644 --- a/sound/soc/codecs/wm8750.c +++ b/sound/soc/codecs/wm8750.c @@ -781,7 +781,7 @@ static int __devexit wm8750_spi_remove(struct spi_device *spi) static const struct spi_device_id wm8750_spi_ids[] = { { "wm8750", 0 }, { "wm8987", 0 }, - { 0, 0 }, + { }, }; MODULE_DEVICE_TABLE(spi, wm8750_spi_ids);