Skip to content

Commit

Permalink
ASoC: Add missing dev_set_drvdata in mpc8610_hpcd_probe
Browse files Browse the repository at this point in the history
Otherwise, calling dev_get_drvdata in mpc8610_hpcd_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]>
  • Loading branch information
AxelLin authored and broonie committed Nov 29, 2010
1 parent 3f90e50 commit 67bd489
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/fsl/mpc8610_hpcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 67bd489

Please sign in to comment.