projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
894bf92
)
ASoC: n810: replace BUG() with BUG_ON()
author
Alexander Beregalov
<a.beregalov@gmail.com>
Sun, 12 Apr 2009 01:04:43 +0000
(
05:04
+0400)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sun, 12 Apr 2009 09:33:15 +0000
(10:33 +0100)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/n810.c
patch
|
blob
|
history
diff --git
a/sound/soc/omap/n810.c
b/sound/soc/omap/n810.c
index
a6d1178
..
e54e1c2
100644
(file)
--- a/
sound/soc/omap/n810.c
+++ b/
sound/soc/omap/n810.c
@@
-383,10
+383,9
@@
static int __init n810_soc_init(void)
clk_set_parent(sys_clkout2_src, func96m_clk);
clk_set_rate(sys_clkout2, 12000000);
- if (gpio_request(N810_HEADSET_AMP_GPIO, "hs_amp") < 0)
- BUG();
- if (gpio_request(N810_SPEAKER_AMP_GPIO, "spk_amp") < 0)
- BUG();
+ BUG_ON((gpio_request(N810_HEADSET_AMP_GPIO, "hs_amp") < 0) ||
+ (gpio_request(N810_SPEAKER_AMP_GPIO, "spk_amp") < 0));
+
gpio_direction_output(N810_HEADSET_AMP_GPIO, 0);
gpio_direction_output(N810_SPEAKER_AMP_GPIO, 0);