Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182886
b: refs/heads/master
c: c0ff4bc
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Mack authored and Mark Brown committed Feb 10, 2010
1 parent 0eca023 commit 592e4a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22313eafe92aeec1db9839f5afb71675bf2a5c33
refs/heads/master: c0ff4bcd2e8505b09e0bedc74d08ad2da1e326f8
10 changes: 10 additions & 0 deletions trunk/sound/soc/codecs/cs4270.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,17 @@ static int cs4270_probe(struct platform_device *pdev)
if (ret < 0)
goto error_free_pcms;

ret = regulator_bulk_enable(ARRAY_SIZE(cs4270->supplies),
cs4270->supplies);
if (ret < 0)
goto error_free_regulators;

return 0;

error_free_regulators:
regulator_bulk_free(ARRAY_SIZE(cs4270->supplies),
cs4270->supplies);

error_free_pcms:
snd_soc_free_pcms(socdev);

Expand All @@ -650,6 +659,7 @@ static int cs4270_remove(struct platform_device *pdev)
struct cs4270_private *cs4270 = codec->private_data;

snd_soc_free_pcms(socdev);
regulator_bulk_disable(ARRAY_SIZE(cs4270->supplies), cs4270->supplies);
regulator_bulk_free(ARRAY_SIZE(cs4270->supplies), cs4270->supplies);

return 0;
Expand Down

0 comments on commit 592e4a3

Please sign in to comment.