OSDN Git Service

ASoC: Create card debugfs directory earlier
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 9 Apr 2015 08:52:36 +0000 (10:52 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 9 Apr 2015 10:24:03 +0000 (11:24 +0100)
commit0757d834eb7482e5763fb9ee014abb50789f906a
treed444c816e88d118e816458f3aba0c9ec2ace9540
parent95a9ca74768089d89c17ba958d6f009aa9c18525
ASoC: Create card debugfs directory earlier

Create the card debugfs directory at the begining of the initilization
rather then the end as various steps in the initilization sequence will try
to register files and sub-directories in the card directory.

Fixes: 4e2576bd36a1 ("ASoC: soc-core: initialize debugfs in snd_soc_instantiate_card()")
Reported-by: Fabio Estevam <festevam@gmail.com>
Reported-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c