diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-06-07 00:37:30 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-07 20:26:54 +0100 |
commit | 0d6b35212b451d4ac0c07c7b2b15b20ea763df5c (patch) | |
tree | 3435547641f6f677055e0bcfa4cab24dafc44342 | |
parent | 5f440c48c5d5a11f1892819c409e183b2056e4ba (diff) | |
download | linux-0d6b35212b451d4ac0c07c7b2b15b20ea763df5c.tar.bz2 |
ASoC: simple-scu-card: remove duplicate paramera from asoc_simple_card_parse_of
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/generic/simple-scu-card.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c index 9a251400685e..5faf5d6c48a2 100644 --- a/sound/soc/generic/simple-scu-card.c +++ b/sound/soc/generic/simple-scu-card.c @@ -192,13 +192,13 @@ static int asoc_simple_card_dai_link_of(struct device_node *np, return 0; } -static int asoc_simple_card_parse_of(struct device_node *node, - struct simple_card_data *priv) +static int asoc_simple_card_parse_of(struct simple_card_data *priv) { struct device *dev = simple_priv_to_dev(priv); struct device_node *np; struct snd_soc_card *card = simple_priv_to_card(priv); + struct device_node *node = dev->of_node; unsigned int daifmt = 0; bool is_fe; int ret, i; @@ -281,7 +281,7 @@ static int asoc_simple_card_probe(struct platform_device *pdev) card->codec_conf = &priv->codec_conf; card->num_configs = 1; - ret = asoc_simple_card_parse_of(np, priv); + ret = asoc_simple_card_parse_of(priv); if (ret < 0) { if (ret != -EPROBE_DEFER) dev_err(dev, "parse error %d\n", ret); |