forked from Minki/linux
ASoC: simple-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>
This commit is contained in:
parent
a5de5b74a5
commit
dcee9bfe89
@ -418,8 +418,8 @@ static int asoc_simple_card_probe(struct platform_device *pdev)
|
||||
struct simple_card_data *priv;
|
||||
struct snd_soc_dai_link *dai_link;
|
||||
struct simple_dai_props *dai_props;
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
struct device *dev = &pdev->dev;
|
||||
struct device_node *np = dev->of_node;
|
||||
int num, ret;
|
||||
|
||||
/* Get the number of DAI links */
|
||||
@ -491,7 +491,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:
|
||||
|
Loading…
Reference in New Issue
Block a user