diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-08-19 15:51:20 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-19 10:59:45 -0500 |
commit | 93c3ce76ccced3a8718149e8734ccaa931e9a1f1 (patch) | |
tree | dfb0ca9deaf504332fa512cbff8214c11bf0387c /include/sound/soc.h | |
parent | f1d45cc3ae96a6173129b2c164c216272faa5fc0 (diff) | |
download | linux-93c3ce76ccced3a8718149e8734ccaa931e9a1f1.tar.gz linux-93c3ce76ccced3a8718149e8734ccaa931e9a1f1.tar.bz2 linux-93c3ce76ccced3a8718149e8734ccaa931e9a1f1.zip |
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 <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound/soc.h')
0 files changed, 0 insertions, 0 deletions