Re: [PATCH] ASoC: sun4i-codec: Enable bus clock after getting GPIO

2016-11-02 Thread Maxime Ripard
On Tue, Nov 01, 2016 at 02:31:55PM +0800, Chen-Yu Tsai wrote: > 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

Re: [PATCH] ASoC: sun4i-codec: Enable bus clock after getting GPIO

2016-11-02 Thread Maxime Ripard
On Tue, Nov 01, 2016 at 02:31:55PM +0800, Chen-Yu Tsai wrote: > 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

[PATCH] ASoC: sun4i-codec: Enable bus clock after getting GPIO

2016-11-01 Thread Chen-Yu Tsai
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

[PATCH] ASoC: sun4i-codec: Enable bus clock after getting GPIO

2016-11-01 Thread Chen-Yu Tsai
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