ASoC: Intel: Use devm_snd_soc_register_card
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Wed, 28 May 2014 09:35:39 +0000 (12:35 +0300)
committerMark Brown <broonie@linaro.org>
Sun, 1 Jun 2014 10:50:45 +0000 (11:50 +0100)
commit8eb776ab17232b02d915b90f5dd14c45af86c3a0
tree8e43eb76a0496dff4eb6794cf684e57cb4187536
parenta018c285501c2beb54335b1eeddfeab4cd476974
ASoC: Intel: Use devm_snd_soc_register_card

Simplify byt-rt5640.c and haswell.c machine drivers by using
devm_snd_soc_register_card(). Remove also needless dev_set_drvdata()
from byt_rt5640_probe() since snd_soc_register_card() does it too.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/byt-rt5640.c
sound/soc/intel/haswell.c