diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-11-23 06:45:05 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-11-23 06:45:05 -0500 |
commit | 2ab46c9390e74368a38ddb5aa525124518df8b69 (patch) | |
tree | 631e686fb11709add69f07b4fd1e5aaa10f232de /sound/soc/codecs/tpa6130a2.c | |
parent | 9e18e1869f5ebac69f0d881fe97a198ebc0834db (diff) | |
parent | 5b3b0fa8fb0db9645b56361cdc9a9d0ddbc35e4d (diff) |
Merge branch 'for-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc-2.6 into topic/asoc
Conflicts:
sound/soc/codecs/tpa6130a2.c
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 f9a92ea6b50a..d69d2f5f9570 100644 --- a/sound/soc/codecs/tpa6130a2.c +++ b/sound/soc/codecs/tpa6130a2.c | |||
@@ -126,9 +126,6 @@ static int tpa6130a2_power(int power) | |||
126 | 126 | ||
127 | mutex_lock(&data->mutex); | 127 | mutex_lock(&data->mutex); |
128 | if (power && !data->power_state) { | 128 | if (power && !data->power_state) { |
129 | /* Power on */ | ||
130 | if (data->power_gpio >= 0) | ||
131 | gpio_set_value(data->power_gpio, 1); | ||
132 | 129 | ||
133 | ret = regulator_enable(data->supply); | 130 | ret = regulator_enable(data->supply); |
134 | if (ret != 0) { | 131 | if (ret != 0) { |
@@ -136,6 +133,9 @@ static int tpa6130a2_power(int power) | |||
136 | "Failed to enable supply: %d\n", ret); | 133 | "Failed to enable supply: %d\n", ret); |
137 | goto exit; | 134 | goto exit; |
138 | } | 135 | } |
136 | /* Power on */ | ||
137 | if (data->power_gpio >= 0) | ||
138 | gpio_set_value(data->power_gpio, 1); | ||
139 | 139 | ||
140 | data->power_state = 1; | 140 | data->power_state = 1; |
141 | ret = tpa6130a2_initialize(); | 141 | ret = tpa6130a2_initialize(); |