ASoC: Fix NULL vs. 0 warning in SSM2602
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 May 2011 22:01:58 +0000 (00:01 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 11 May 2011 13:24:05 +0000 (15:24 +0200)
sparse complains if 0 is used as a NULL pointer constant.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/codecs/ssm2602.c

index 70099c9d63c7aac2226404df70965eefaba15884..84f4ad56855601f63b582d7aaa5e29b5fce438fd 100644 (file)
@@ -137,7 +137,7 @@ SND_SOC_DAPM_DAC("DAC", "HiFi Playback", SSM2602_PWR, 3, 1),
 SND_SOC_DAPM_ADC("ADC", "HiFi Capture", SSM2602_PWR, 2, 1),
 SND_SOC_DAPM_PGA("Line Input", SSM2602_PWR, 0, 1, NULL, 0),
 
-SND_SOC_DAPM_SUPPLY("Digital Core Power", SSM2602_ACTIVE, 0, 0, 0, 0),
+SND_SOC_DAPM_SUPPLY("Digital Core Power", SSM2602_ACTIVE, 0, 0, NULL, 0),
 
 SND_SOC_DAPM_OUTPUT("LOUT"),
 SND_SOC_DAPM_OUTPUT("ROUT"),