diff options
author | Olof Johansson <olof@lixom.net> | 2011-10-14 18:54:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-17 17:43:16 -0400 |
commit | 01840bbe5f4406bf1d24590b96b0e3df43aaa81a (patch) | |
tree | 645e2e9b5fd32800b53dcd48a44d0e0aba843d54 /sound/soc | |
parent | 535bd16f4190d6868661c7f5d61cb4cbd64cd94c (diff) |
ASoC: Tegra: sparse cleanup
Fixes the following sparse warnings:
sound/soc/tegra/tegra_das.c:215:8: warning: Using plain integer as NULL pointer
sound/soc/tegra/tegra_das.c:237:8: warning: Using plain integer as NULL pointer
sound/soc/tegra/tegra_pcm.c:370:32: warning: symbol 'tegra_pcm_platform' was not declared. Should it be static?
Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/tegra/tegra_das.c | 4 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_pcm.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/tegra/tegra_das.c b/sound/soc/tegra/tegra_das.c index 9f24ef73f2cb..3b55a44146af 100644 --- a/sound/soc/tegra/tegra_das.c +++ b/sound/soc/tegra/tegra_das.c | |||
@@ -212,7 +212,7 @@ err_release: | |||
212 | release_mem_region(res->start, resource_size(res)); | 212 | release_mem_region(res->start, resource_size(res)); |
213 | err_free: | 213 | err_free: |
214 | kfree(das); | 214 | kfree(das); |
215 | das = 0; | 215 | das = NULL; |
216 | exit: | 216 | exit: |
217 | return ret; | 217 | return ret; |
218 | } | 218 | } |
@@ -234,7 +234,7 @@ static int __devexit tegra_das_remove(struct platform_device *pdev) | |||
234 | release_mem_region(res->start, resource_size(res)); | 234 | release_mem_region(res->start, resource_size(res)); |
235 | 235 | ||
236 | kfree(das); | 236 | kfree(das); |
237 | das = 0; | 237 | das = NULL; |
238 | 238 | ||
239 | return 0; | 239 | return 0; |
240 | } | 240 | } |
diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c index c7cfd96e991e..436def1dfa39 100644 --- a/sound/soc/tegra/tegra_pcm.c +++ b/sound/soc/tegra/tegra_pcm.c | |||
@@ -367,7 +367,7 @@ static void tegra_pcm_free(struct snd_pcm *pcm) | |||
367 | tegra_pcm_deallocate_dma_buffer(pcm, SNDRV_PCM_STREAM_PLAYBACK); | 367 | tegra_pcm_deallocate_dma_buffer(pcm, SNDRV_PCM_STREAM_PLAYBACK); |
368 | } | 368 | } |
369 | 369 | ||
370 | struct snd_soc_platform_driver tegra_pcm_platform = { | 370 | static struct snd_soc_platform_driver tegra_pcm_platform = { |
371 | .ops = &tegra_pcm_ops, | 371 | .ops = &tegra_pcm_ops, |
372 | .pcm_new = tegra_pcm_new, | 372 | .pcm_new = tegra_pcm_new, |
373 | .pcm_free = tegra_pcm_free, | 373 | .pcm_free = tegra_pcm_free, |