]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Add resource managed snd_dmaengine_pcm_register()
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 28 Nov 2013 07:50:32 +0000 (08:50 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 28 Nov 2013 13:35:36 +0000 (13:35 +0000)
commitec57c5c49ff870c02a2d292914b1ad84e5f1bfe3
treeb4183e84d23c2ee820192d8183ed6716a7a87c33
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
ASoC: Add resource managed snd_dmaengine_pcm_register()

For many drivers using the generic dmaengine PCM driver one of the few (or the
only) things left to do in the drivers remove function is to unregister the PCM
device. This patch adds a resource managed version of snd_dmaengine_pcm_register()
which makes it possible to simplify the remove function as well as the error
path in the probe function for those drivers.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/dmaengine_pcm.h
sound/soc/soc-devres.c