]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: uda1380: Request GPIOs at bus probe time
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 23 Nov 2016 09:30:11 +0000 (10:30 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 23 Nov 2016 12:30:55 +0000 (12:30 +0000)
commit9a35bbb4fb7d3bc2e2934cc409c2a65368944f61
tree2dad68b5e9ef0926f5e94a7513af58d1a16cea10
parent02be9e53dce124f0bffacfbc2d2c1abb6e770e66
ASoC: uda1380: Request GPIOs at bus probe time

Resources should be requested when the device is probed on the control bus
rather then when the CODEC is bound to the sound card. This allows things
like probe deferring and device managed allocations to work.

So move the GPIO request calls from the CODEC probe to the bus probe and
also make them managed along the way.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/uda1380.c