diff options
author | Curtis Malainey <cujomalainey@chromium.org> | 2019-10-24 11:40:26 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-10-25 11:06:08 +0100 |
commit | 6442793abf75a8081aa1f5da439529c08af2a5be (patch) | |
tree | 40f7f519f2552e82f97d40fd06493b8d1a95d146 /sound/soc/codecs/rt5677-spi.c | |
parent | f8a60435703bdde8f8a0ceb1aa8dad59df821583 (diff) | |
download | lwn-6442793abf75a8081aa1f5da439529c08af2a5be.tar.gz lwn-6442793abf75a8081aa1f5da439529c08af2a5be.zip |
ASoC: rt5677-spi: fix sparse warnings
Fix bugs reported by kbuild test robot
Fixes: a0e0d135427c ("ASoC: rt5677: Add a PCM device for streaming hotword via SPI")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://lore.kernel.org/r/20191024184026.183913-1-cujomalainey@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5677-spi.c')
-rw-r--r-- | sound/soc/codecs/rt5677-spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5677-spi.c b/sound/soc/codecs/rt5677-spi.c index 3a17643fcd9f..dac1097bc740 100644 --- a/sound/soc/codecs/rt5677-spi.c +++ b/sound/soc/codecs/rt5677-spi.c @@ -145,7 +145,7 @@ static int rt5677_spi_hw_free( snd_soc_component_get_drvdata(component); mutex_lock(&rt5677_dsp->dma_lock); - rt5677_dsp->substream = 0; + rt5677_dsp->substream = NULL; mutex_unlock(&rt5677_dsp->dma_lock); return snd_pcm_lib_free_vmalloc_buffer(substream); @@ -362,7 +362,7 @@ done: mutex_unlock(&rt5677_dsp->dma_lock); } -struct page *rt5677_spi_pcm_page( +static struct page *rt5677_spi_pcm_page( struct snd_soc_component *component, struct snd_pcm_substream *substream, unsigned long offset) |