ASoC: cs4271: free allocated GPIO
authorDaniel Mack <zonque@gmail.com>
Sat, 10 Nov 2012 18:52:50 +0000 (19:52 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 13 Nov 2012 06:45:35 +0000 (15:45 +0900)
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 using devm_gpio_request().

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Michael Hirsch <hirsch@teufel.de>
Cc: Alexander Sverdlin <subaparts@yandex.ru>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found