mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-12-04 23:10:56 -06:00
ASoC: ti: ams-delta: use &pdev->dev instead of card->dev
ams_delta_probe() will be updated when Card capsuling. To makes its review easy, use &pdev->dev instead of card->dev. These are same card->dev = &pdev->dev; No functional change, but is preparation for Card capsuling. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87h5lti0cu.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -562,12 +562,12 @@ static int ams_delta_probe(struct platform_device *pdev)
|
||||
|
||||
card->dev = &pdev->dev;
|
||||
|
||||
handset_mute = devm_gpiod_get(card->dev, "handset_mute",
|
||||
handset_mute = devm_gpiod_get(&pdev->dev, "handset_mute",
|
||||
GPIOD_OUT_HIGH);
|
||||
if (IS_ERR(handset_mute))
|
||||
return PTR_ERR(handset_mute);
|
||||
|
||||
handsfree_mute = devm_gpiod_get(card->dev, "handsfree_mute",
|
||||
handsfree_mute = devm_gpiod_get(&pdev->dev, "handsfree_mute",
|
||||
GPIOD_OUT_HIGH);
|
||||
if (IS_ERR(handsfree_mute))
|
||||
return PTR_ERR(handsfree_mute);
|
||||
|
||||
Reference in New Issue
Block a user