On Thu, Apr 09, 2015 at 10:52:38AM +0200, Lars-Peter Clausen wrote:
If the registration of a debugfs directory fails this is treated as a non-fatal error in ASoC and operation continues as normal. This means we need to be careful and check if the parent debugfs directory exists if we try to register a debugfs file or sub-directory. Otherwise we might end up passing NULL for the parent and the file or directory will be registered in the top-level debugfs directory.
Hrm, right. On the one hand just silently ignoring the knock on errors feels icky on the other hand it's probably better to do something like this providing the earlier errors got reported (and were actually earlier, I can see us reordering things and causing further problems later on).