regulator: core: Fix regualtor_ena_gpio_free not to access pin after freeing
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 4 Dec 2014 10:17:17 +0000 (19:17 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 4 Dec 2014 22:45:36 +0000 (22:45 +0000)
commit60a2362f769cf549dc466134efe71c8bf9fbaaba
treed3a28bd5639ad1b4ee53019b09c0821df24e65ac
parent194dbaefa0da24bb60d9df1c99dda807f51fc33f
regulator: core: Fix regualtor_ena_gpio_free not to access pin after freeing

After freeing pin from regulator_ena_gpio_free, loop can access
the pin. So this patch fixes not to access pin after freeing.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c