Staging: batman-adv: Ignore debugfs on kernels without debugfs support
commit8bfe3638747b2c2f842edf9eb2a407a22a9d537d
authorSven Eckelmann <sven.eckelmann@gmx.de>
Mon, 21 Jun 2010 23:25:48 +0000 (22 01:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Jun 2010 21:05:05 +0000 (22 14:05 -0700)
tree1f1419b54c7c832d8f86395edc2f856649b8b693
parent42fa1b92ab3261ef60ef4f60ff6eff2a0585348d
Staging: batman-adv: Ignore debugfs on kernels without debugfs support

All code for debugfs is ignored when the creation of the batman-adv root
directory in debugfs fails. It must also be ignored when the
debugfs_create_dir tells us that debugfs is not implemented to prevent
possible crashes in the future.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/bat_debugfs.c