[alsa-devel] [PATCH] ALSA: ASoC: cs4271: free allocated GPIO

Daniel Mack zonque at gmail.com
Sat Nov 10 19:52:06 CET 2012


On 07.11.2012 15:07, Mark Brown wrote:
> On Wed, Nov 07, 2012 at 02:15:55PM +0100, Daniel Mack wrote:
>> In case of probe deferral, the allocated GPIO line is not freed, which
>> prevents it from being claimed and properly asserted in later attempts.
>>
>> Fix this by freeing the GPIO in case of errors.
> 
> Can we convert to devm_gpio_request_one() instead?
> 

Sure, that's much nicer.



More information about the Alsa-devel mailing list