ASoC: dmaengine: Add config parameter NULL check.
authorXiubo Li <Li.Xiubo@freescale.com>
Tue, 17 Dec 2013 07:16:40 +0000 (15:16 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 17 Dec 2013 11:17:56 +0000 (11:17 +0000)
commit2b67f8ba41ac7acf01c8d5c742c713ead8b589cd
tree4269cbf8661a95b669ec0086253f949ac4108e28
parente9036c2a60f368b8ddc349fbbcde918ed32ab597
ASoC: dmaengine: Add config parameter NULL check.

Because the "ASoC: dmaengine-pcm: Provide default config" has provided
us one defualt config of DMA. When using this, the config parameter of
devm_snd_dmaengine_pcm_register() will be NULL, so here we need to have
a check before using it.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-generic-dmaengine-pcm.c