diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-24 06:26:39 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-24 06:26:39 -0500 |
commit | a1c1f770e3653bfcd5dd664d8471f70d220e19f3 (patch) | |
tree | fdf3001d6608d8d8c715da7ea84c0d32fc33a9a7 /sound/soc/codecs/tpa6130a2.c | |
parent | d50a87402e29e16a63152be810d9723ce4d87e37 (diff) | |
parent | 2ab46c9390e74368a38ddb5aa525124518df8b69 (diff) |
Merge branch 'topic/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 into for-2.6.38
Diffstat (limited to 'sound/soc/codecs/tpa6130a2.c')
-rw-r--r-- | sound/soc/codecs/tpa6130a2.c | 6 |
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(); |