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)
commit222e728ca29b5976accd1fc520a716d168ee2ca5
tree2dad68b5e9ef0926f5e94a7513af58d1a16cea10
parent4185d4be22a3fbf8e065437883ced195e692642b
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