alistair23-linux/sound/soc/sunxi
Chen-Yu Tsai 3716a891d6 ASoC: sun4i-codec: Enable bus clock after getting GPIO
In the current probe function the GPIO is acquired after the codec's
bus clock is enabled. However if it fails to acquire the GPIO due to
a deferred probe, it does not disable the bus clock before bailing out.
This would result in the clock being enabled multiple times.

Move the code that enables the bus clock after the part that gets the
GPIO, maintaining a separation between resource acquisition and device
enablement in the probe function.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-11-01 14:03:41 -06:00
..
Kconfig ASoC: sunxi: depend on ARCH_SUNXI 2016-08-24 10:41:15 +01:00
Makefile ASoC: sunxi: Add Allwinner A10 Digital Audio driver 2016-06-29 22:42:53 +01:00
sun4i-codec.c ASoC: sun4i-codec: Enable bus clock after getting GPIO 2016-11-01 14:03:41 -06:00
sun4i-i2s.c ASoC: sunxi: remove redundant dev_err call in sun4i_i2s_probe() 2016-07-04 17:28:30 +02:00
sun4i-spdif.c ASoC: sunxi: compatibility for sun6i to SPDIF 2016-08-12 12:00:34 +01:00