aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tpa6130a2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/tpa6130a2.c')
-rw-r--r--sound/soc/codecs/tpa6130a2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c
index 2d64502c0c5b..9d61a1d6fce0 100644
--- a/sound/soc/codecs/tpa6130a2.c
+++ b/sound/soc/codecs/tpa6130a2.c
@@ -127,9 +127,6 @@ static int tpa6130a2_power(int power)
127 127
128 mutex_lock(&data->mutex); 128 mutex_lock(&data->mutex);
129 if (power && !data->power_state) { 129 if (power && !data->power_state) {
130 /* Power on */
131 if (data->power_gpio >= 0)
132 gpio_set_value(data->power_gpio, 1);
133 130
134 ret = regulator_enable(data->supply); 131 ret = regulator_enable(data->supply);
135 if (ret != 0) { 132 if (ret != 0) {
@@ -137,6 +134,9 @@ static int tpa6130a2_power(int power)
137 "Failed to enable supply: %d\n", ret); 134 "Failed to enable supply: %d\n", ret);
138 goto exit; 135 goto exit;
139 } 136 }
137 /* Power on */
138 if (data->power_gpio >= 0)
139 gpio_set_value(data->power_gpio, 1);
140 140
141 data->power_state = 1; 141 data->power_state = 1;
142 ret = tpa6130a2_initialize(); 142 ret = tpa6130a2_initialize();