summaryrefslogtreecommitdiffstats
path: root/sound/soc/generic
diff options
context:
space:
mode:
authorKuninori Morimoto2017-03-15 05:43:40 +0100
committerMark Brown2017-03-16 15:10:36 +0100
commit40b68dac75a1d16266d3c89244ccf7b899afac3e (patch)
tree56d0c82c6796b2ce6c8d36a794431a54600386d2 /sound/soc/generic
parentASoC: simple-card: use defined dev on probe() (diff)
downloadkernel-qcow2-linux-40b68dac75a1d16266d3c89244ccf7b899afac3e.tar.gz
kernel-qcow2-linux-40b68dac75a1d16266d3c89244ccf7b899afac3e.tar.xz
kernel-qcow2-linux-40b68dac75a1d16266d3c89244ccf7b899afac3e.zip
ASoC: simple-scu-card: use defined dev on probe()
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>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r--sound/soc/generic/simple-scu-card.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c
index bb86ee042490..93d7d8980cd5 100644
--- a/sound/soc/generic/simple-scu-card.c
+++ b/sound/soc/generic/simple-scu-card.c
@@ -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: