diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/generic/simple-card.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 58c217e403ae..d4402fb57253 100644 --- 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, | |||
106 | &dai->sysclk); | 106 | &dai->sysclk); |
107 | } else { | 107 | } else { |
108 | clk = of_clk_get(*node, 0); | 108 | clk = of_clk_get(*node, 0); |
109 | if (IS_ERR(clk)) { | 109 | if (!IS_ERR(clk)) |
110 | ret = PTR_ERR(clk); | 110 | dai->sysclk = clk_get_rate(clk); |
111 | goto parse_error; | ||
112 | } | ||
113 | |||
114 | dai->sysclk = clk_get_rate(clk); | ||
115 | } | 111 | } |
116 | 112 | ||
117 | ret = 0; | 113 | ret = 0; |