From: Lars-Peter Clausen Date: Tue, 1 Jul 2014 20:13:48 +0000 (+0200) Subject: ASoC: core: Move non-shared code paths out of snd_soc_post_component_init() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~144^2~5^2~16^2~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f3484ac8775a183f855fd213907c4221d2fb11f;p=pandora-kernel.git ASoC: core: Move non-shared code paths out of snd_soc_post_component_init() There are two call sites for snd_soc_post_component_init(), one passes 0 and the other 1 for the 'dailess' parameter of snd_soc_post_component_init(). Depending on whether 'dailess' is 0 or 1 snd_soc_post_component_init() runs different code at the beginning and the end of the function. The patch moves this conditional code out of snd_soc_post_component_init() and into the call sites. This removes the need for snd_soc_post_component_init() to know whether it is called for a DAI link or a aux dev. Also do the initialization of rtd->card when the rtd struct is allocated. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed