forked from luck/tmp_suning_uos_patched
ASoC: Add missing dev_set_drvdata in mpc8610_hpcd_probe
Otherwise, calling dev_get_drvdata in mpc8610_hpcd_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
3f90e5028a
commit
67bd489aa3
@ -498,6 +498,7 @@ static int mpc8610_hpcd_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