diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-08-08 02:03:35 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-08 06:35:51 -0400 |
commit | c3b19c8dd069894961d0616aa3706df2920e7be4 (patch) | |
tree | c5c64f4be6c01639254511377a1d4441c7be65d7 /sound/soc | |
parent | 5bbf3866cbc1da23c628ad5dd7248cca8b8adc2c (diff) |
ASoC: simple-card: remove asoc_simple_card_sub_parse_of()
asoc_simple_card_sub_parse_of() is no longer needed. Let's cleanup
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/generic/simple-card.c | 46 |
1 files changed, 8 insertions, 38 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 05d6e02c42f3..99028c190ea3 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c | |||
@@ -238,31 +238,6 @@ static int asoc_simple_card_dai_init(struct snd_soc_pcm_runtime *rtd) | |||
238 | return 0; | 238 | return 0; |
239 | } | 239 | } |
240 | 240 | ||
241 | static int | ||
242 | asoc_simple_card_sub_parse_of(struct device_node *np, | ||
243 | struct asoc_simple_dai *dai, | ||
244 | struct device_node **p_node, | ||
245 | const char **name, | ||
246 | int *args_count) | ||
247 | { | ||
248 | int ret; | ||
249 | |||
250 | if (!np) | ||
251 | return 0; | ||
252 | |||
253 | if (!dai) | ||
254 | return 0; | ||
255 | |||
256 | /* Parse TDM slot */ | ||
257 | ret = snd_soc_of_parse_tdm_slot(np, &dai->tx_slot_mask, | ||
258 | &dai->rx_slot_mask, | ||
259 | &dai->slots, &dai->slot_width); | ||
260 | if (ret) | ||
261 | return ret; | ||
262 | |||
263 | return 0; | ||
264 | } | ||
265 | |||
266 | static int asoc_simple_card_dai_link_of(struct device_node *node, | 241 | static int asoc_simple_card_dai_link_of(struct device_node *node, |
267 | struct simple_card_data *priv, | 242 | struct simple_card_data *priv, |
268 | int idx, | 243 | int idx, |
@@ -321,22 +296,17 @@ static int asoc_simple_card_dai_link_of(struct device_node *node, | |||
321 | if (ret < 0) | 296 | if (ret < 0) |
322 | goto dai_link_of_err; | 297 | goto dai_link_of_err; |
323 | 298 | ||
324 | ret = asoc_simple_card_sub_parse_of(cpu, &dai_props->cpu_dai, | 299 | ret = snd_soc_of_parse_tdm_slot(cpu, &cpu_dai->tx_slot_mask, |
325 | &dai_link->cpu_of_node, | 300 | &cpu_dai->rx_slot_mask, |
326 | &dai_link->cpu_dai_name, | 301 | &cpu_dai->slots, |
327 | &single_cpu); | 302 | &cpu_dai->slot_width); |
328 | if (ret < 0) | ||
329 | goto dai_link_of_err; | ||
330 | |||
331 | ret = asoc_simple_card_sub_parse_of(codec, &dai_props->codec_dai, | ||
332 | &dai_link->codec_of_node, | ||
333 | &dai_link->codec_dai_name, NULL); | ||
334 | if (ret < 0) | 303 | if (ret < 0) |
335 | goto dai_link_of_err; | 304 | goto dai_link_of_err; |
336 | 305 | ||
337 | ret = asoc_simple_card_sub_parse_of(plat, NULL, | 306 | ret = snd_soc_of_parse_tdm_slot(codec, &codec_dai->tx_slot_mask, |
338 | &dai_link->platform_of_node, | 307 | &codec_dai->rx_slot_mask, |
339 | NULL, NULL); | 308 | &codec_dai->slots, |
309 | &codec_dai->slot_width); | ||
340 | if (ret < 0) | 310 | if (ret < 0) |
341 | goto dai_link_of_err; | 311 | goto dai_link_of_err; |
342 | 312 | ||