ASoC: simple-card: Remove useless function argument
authorJean-Francois Moine <moinejf@free.fr>
Tue, 25 Nov 2014 12:22:45 +0000 (13:22 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 25 Nov 2014 13:49:33 +0000 (13:49 +0000)
The device node pointer 'cpu' is not used in the function
asoc_simple_card_parse_daifmt().

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card.c

index 3e3fec4e5c4ea5f15f1c2e1ee6ebeccbc9600a38..ece22d55ba826a5ac62f17c9958ace80b60e4141 100644 (file)
@@ -232,7 +232,6 @@ asoc_simple_card_sub_parse_of(struct device_node *np,
 
 static int asoc_simple_card_parse_daifmt(struct device_node *node,
                                         struct simple_card_data *priv,
-                                        struct device_node *cpu,
                                         struct device_node *codec,
                                         char *prefix, int idx)
 {
@@ -309,7 +308,7 @@ static int asoc_simple_card_dai_link_of(struct device_node *node,
        }
 
        ret = asoc_simple_card_parse_daifmt(node, priv,
-                                           cpu, codec, prefix, idx);
+                                           codec, prefix, idx);
        if (ret < 0)
                goto dai_link_of_err;