]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: fsl: set correct platform drvdata in pcm030_fabric_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 9 Nov 2013 00:41:14 +0000 (08:41 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 2 Dec 2013 11:13:19 +0000 (11:13 +0000)
commit6c7ef410c986db7e57b83231427e4606a225606b
treea12d12600805fce20a512d1d8ae195eec7ee384e
parent23d8bb3bb65e3587ceff54e1b54dda3c48a14f28
ASoC: fsl: set correct platform drvdata in pcm030_fabric_probe()

platform_set_drvdata(op, pdata) in pcm030_fabric_probe()
will be overwrited when calling snd_soc_register_card(card),
but cm030_fabric_remove() use drvdata as a type of struct
pcm030_audio_data, so we should move platform_set_drvdata()
below snd_soc_register_card() call.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/pcm030-audio-fabric.c