diff options
Diffstat (limited to 'sound/soc/codecs/sgtl5000.c')
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 4124e7b48eb7..02387d34065f 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -895,6 +895,7 @@ static int ldo_regulator_remove(struct snd_soc_codec *codec) if (!ldo) return 0; + sgtl5000->ldo = NULL; regulator_unregister(ldo->dev); kfree(ldo->desc.name); kfree(ldo); @@ -1275,8 +1276,7 @@ static int sgtl5000_enable_regulators(struct snd_soc_codec *codec) err_regulator_free: regulator_bulk_free(ARRAY_SIZE(sgtl5000->supplies), sgtl5000->supplies); - if (! external_vddd) - ldo_regulator_remove(codec); + ldo_regulator_remove(codec); return ret; } |