From: Axel Lin Date: Mon, 29 Nov 2010 06:54:58 +0000 (+0800) Subject: ASoC: Add missing dev_set_drvdata in mpc8610_hpcd_probe X-Git-Tag: v2.6.37-rc5~11^2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67bd489aa309a680b1462ad635df29e8825152d2;p=profile%2Fcommon%2Fkernel-common.git 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 Acked-by: Timur Tabi Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index 0d7dcf1..7d7847a 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c @@ -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);