mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 13:30:57 +07:00
ASoC: Add missing dev_set_drvdata in p1022_ds_probe
Otherwise, calling dev_get_drvdata in p1022_ds_remove returns NULL. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Timur Tabi <timur@freescale.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
67bd489aa3
commit
39a545559f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user