ASoC: rsnd: set device data before snd_soc_register_platform/component
authorKuninori Morimoto <[email protected]>
Mon, 9 Feb 2015 08:05:22 +0000 (08:05 +0000)
committerMark Brown <[email protected]>
Mon, 9 Feb 2015 08:24:31 +0000 (16:24 +0800)
commit0b1f6ec7a5fb3faff1a62afee132dac316eec63d
treef173f32060ed7007d09f247f1097bef6611de160
parentbfa76d49576599a4b9f9b7a71f23d73d6dcff735
ASoC: rsnd: set device data before snd_soc_register_platform/component

Set device data before snd_soc_register_platform/component.
Otherwise, it will use NULL pointer if user calls unbind -> bind or
rmmod -> insmod

Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/sh/rcar/core.c