projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71467e4
)
ASoC: simple-card: Fix the sysclk selection.
author
Xiubo Li
<Li.Xiubo@freescale.com>
Mon, 6 Jan 2014 04:34:36 +0000
(12:34 +0800)
committer
Mark Brown
<broonie@linaro.org>
Mon, 6 Jan 2014 15:28:50 +0000
(15:28 +0000)
For spdif there is no need to do the sysclk setting.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/generic/simple-card.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/generic/simple-card.c
b/sound/soc/generic/simple-card.c
index 58c217e403ae3d02bdc8a8c24afe0a1c20d7fbaf..d4402fb5725362429bd668d189abc44703f5654f 100644
(file)
--- a/
sound/soc/generic/simple-card.c
+++ b/
sound/soc/generic/simple-card.c
@@
-106,12
+106,8
@@
asoc_simple_card_sub_parse_of(struct device_node *np,
&dai->sysclk);
} else {
clk = of_clk_get(*node, 0);
- if (IS_ERR(clk)) {
- ret = PTR_ERR(clk);
- goto parse_error;
- }
-
- dai->sysclk = clk_get_rate(clk);
+ if (!IS_ERR(clk))
+ dai->sysclk = clk_get_rate(clk);
}
ret = 0;