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

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
...@@ -498,6 +498,7 @@ static int p1022_ds_probe(struct platform_device *pdev) ...@@ -498,6 +498,7 @@ static int p1022_ds_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "platform device add failed\n"); dev_err(&pdev->dev, "platform device add failed\n");
goto error; goto error;
} }
dev_set_drvdata(&pdev->dev, sound_device);
of_node_put(codec_np); of_node_put(codec_np);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment