Commit 01840bbe authored by Olof Johansson's avatar Olof Johansson Committed by Mark Brown

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: default avatarOlof Johansson <olof@lixom.net>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 535bd16f
...@@ -212,7 +212,7 @@ static int __devinit tegra_das_probe(struct platform_device *pdev) ...@@ -212,7 +212,7 @@ static int __devinit tegra_das_probe(struct platform_device *pdev)
release_mem_region(res->start, resource_size(res)); release_mem_region(res->start, resource_size(res));
err_free: err_free:
kfree(das); kfree(das);
das = 0; das = NULL;
exit: exit:
return ret; return ret;
} }
...@@ -234,7 +234,7 @@ static int __devexit tegra_das_remove(struct platform_device *pdev) ...@@ -234,7 +234,7 @@ static int __devexit tegra_das_remove(struct platform_device *pdev)
release_mem_region(res->start, resource_size(res)); release_mem_region(res->start, resource_size(res));
kfree(das); kfree(das);
das = 0; das = NULL;
return 0; return 0;
} }
......
...@@ -367,7 +367,7 @@ static void tegra_pcm_free(struct snd_pcm *pcm) ...@@ -367,7 +367,7 @@ static void tegra_pcm_free(struct snd_pcm *pcm)
tegra_pcm_deallocate_dma_buffer(pcm, SNDRV_PCM_STREAM_PLAYBACK); tegra_pcm_deallocate_dma_buffer(pcm, SNDRV_PCM_STREAM_PLAYBACK);
} }
struct snd_soc_platform_driver tegra_pcm_platform = { static struct snd_soc_platform_driver tegra_pcm_platform = {
.ops = &tegra_pcm_ops, .ops = &tegra_pcm_ops,
.pcm_new = tegra_pcm_new, .pcm_new = tegra_pcm_new,
.pcm_free = tegra_pcm_free, .pcm_free = tegra_pcm_free,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment