]> git.karo-electronics.de Git - linux-beck.git/commit
UBI: fix debugfs-less systems support
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 6 Jun 2012 12:22:41 +0000 (15:22 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 7 Jun 2012 07:43:54 +0000 (10:43 +0300)
commite9b4cf2094a65a05a831f070e46c554260632330
tree51a8a420ba19dfe1a9abfaa4d3cf109a8c4e199f
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f
UBI: fix debugfs-less systems support

Commit "aa44d1d UBI: remove Kconfig debugging option" broke UBI and it
refuses to initialize if debugfs (CONFIG_DEBUG_FS) is disabled. I incorrectly
assumed that debugfs files creation function will return success if debugfs
is disabled, but they actually return -ENODEV. This patch fixes the issue.

Reported-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tested-by: Paul Parsons <lost.distance@yahoo.com>
drivers/mtd/ubi/debug.c