ALSA: Fix debugfs_create_dir's error checking method for sound/soc/
authorZhaolei <zhaolei@cn.fujitsu.com>
Fri, 17 Oct 2008 13:04:55 +0000 (21:04 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Oct 2008 15:23:48 +0000 (17:23 +0200)
commit7c2dfee84863628f9af109131edd4344ce567d16
treec34e467f3b907f5ab890f691cc79e4ae4e7f9f78
parentcdbdd1676a5379f1d5cbd4d476f5e349f445befe
ALSA: Fix debugfs_create_dir's error checking method for sound/soc/

debugfs_create_dir() returns NULL if an error occurs, returns -ENODEV
when debugfs is not enabled in the kernel.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/soc-dapm.c