From: Lars-Peter Clausen Date: Thu, 9 Apr 2015 08:52:38 +0000 (+0200) Subject: ASoC: Don't try to register debugfs entries if the parent does not exist X-Git-Tag: omap-for-v4.2/o2_dc~120^2~1^2~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6553bf06a369683408895b87e5172aa99a9266bd;p=pandora-kernel.git ASoC: Don't try to register debugfs entries if the parent does not exist 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. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed