mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 09:20:14 -05: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 <[email protected]> Acked-by: Timur Tabi <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
67bd489aa3
commit
39a545559f
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue