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-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=67bd489aa309a680b1462ad635df29e8825152d2;p=openwrt%2Fstaging%2Fblogic.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 0d7dcf1e4863..7d7847a1e66b 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);