Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39a54555 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: Add missing dev_set_drvdata in p1022_ds_probe



Otherwise, calling dev_get_drvdata in p1022_ds_remove returns NULL.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarTimur Tabi <timur@freescale.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 67bd489a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -498,6 +498,7 @@ static int p1022_ds_probe(struct platform_device *pdev)
		dev_err(&pdev->dev, "platform device add failed\n");
		goto error;
	}
	dev_set_drvdata(&pdev->dev, sound_device);

	of_node_put(codec_np);