From: Lars-Peter Clausen Date: Tue, 19 Aug 2014 13:51:20 +0000 (+0200) Subject: ASoC: Make rtd->codec optional X-Git-Tag: fixes-against-v3.18-rc2~128^2~8^2~12^2~7^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93c3ce76ccced3a8718149e8734ccaa931e9a1f1;p=pandora-kernel.git ASoC: Make rtd->codec optional There are some place in the ASoC core that expect rtd->codec to be non NULL (mainly CODEC specific sysfs files). With componentization going forward rtd->codec might be NULL in some cases. This patch prepares the core for this by not registering CODEC specific sysfs files if rtd->codec is NULL. sysfs file removal does not need to be conditionalized as it handles the removal of non-existing files just fine. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed