ASoC: simple-scu-card: use defined dev on probe()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 15 Mar 2017 04:43:40 +0000 (04:43 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 16 Mar 2017 14:10:36 +0000 (14:10 +0000)
Current asoc_simple_card_probe() already has dev definition,
but some place doesn't use it. Let's fix this issue.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-scu-card.c

index bb86ee0424902d3f18bc0ad94bd33d20242416c0..93d7d8980cd5d803f2b265f6c2bb68009f2dabac 100644 (file)
@@ -257,7 +257,7 @@ static int asoc_simple_card_probe(struct platform_device *pdev)
        struct snd_soc_dai_link *dai_link;
        struct asoc_simple_dai *dai_props;
        struct device *dev = &pdev->dev;
-       struct device_node *np = pdev->dev.of_node;
+       struct device_node *np = dev->of_node;
        int num, ret;
 
        /* Allocate the private data */
@@ -292,7 +292,7 @@ static int asoc_simple_card_probe(struct platform_device *pdev)
 
        snd_soc_card_set_drvdata(&priv->snd_card, priv);
 
-       ret = devm_snd_soc_register_card(&pdev->dev, &priv->snd_card);
+       ret = devm_snd_soc_register_card(dev, &priv->snd_card);
        if (ret >= 0)
                return ret;
 err: