diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-28 14:41:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-28 14:41:43 -0400 |
commit | 9a7c6b73c40e916861eb852dc5855ffb3d58a3cd (patch) | |
tree | fff050488cb58ff8540e41f29bbcb1c487220c14 /drivers | |
parent | 4a9c46978d9a7e8f2b41f757eb24bd190b1a3b7b (diff) | |
parent | 903e0e4ef9120c3d7693599acb95e76e8263fb35 (diff) |
Merge tag 'upstream-3.5-rc5' of git://git.infradead.org/linux-ubifs
Pull ubi/ubifs fixes from Artem Bityutskiy:
"Fix the debugfs regression - we never enable it because incorrect
'IS_ENABLED()' macro usage: should be 'IS_ENABLED(CONFIG_DEBUG_FS)',
but we had 'IS_ENABLED(DEBUG_FS)'. Also fix incorrect assertion."
* tag 'upstream-3.5-rc5' of git://git.infradead.org/linux-ubifs:
UBI: correct usage of IS_ENABLED()
UBIFS: correct usage of IS_ENABLED()
UBIFS: fix assertion
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/ubi/debug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c index 09d4f8d9d592..7c1380305219 100644 --- a/drivers/mtd/ubi/debug.c +++ b/drivers/mtd/ubi/debug.c | |||
@@ -264,7 +264,7 @@ static struct dentry *dfs_rootdir; | |||
264 | */ | 264 | */ |
265 | int ubi_debugfs_init(void) | 265 | int ubi_debugfs_init(void) |
266 | { | 266 | { |
267 | if (!IS_ENABLED(DEBUG_FS)) | 267 | if (!IS_ENABLED(CONFIG_DEBUG_FS)) |
268 | return 0; | 268 | return 0; |
269 | 269 | ||
270 | dfs_rootdir = debugfs_create_dir("ubi", NULL); | 270 | dfs_rootdir = debugfs_create_dir("ubi", NULL); |
@@ -284,7 +284,7 @@ int ubi_debugfs_init(void) | |||
284 | */ | 284 | */ |
285 | void ubi_debugfs_exit(void) | 285 | void ubi_debugfs_exit(void) |
286 | { | 286 | { |
287 | if (IS_ENABLED(DEBUG_FS)) | 287 | if (IS_ENABLED(CONFIG_DEBUG_FS)) |
288 | debugfs_remove(dfs_rootdir); | 288 | debugfs_remove(dfs_rootdir); |
289 | } | 289 | } |
290 | 290 | ||
@@ -407,7 +407,7 @@ int ubi_debugfs_init_dev(struct ubi_device *ubi) | |||
407 | struct dentry *dent; | 407 | struct dentry *dent; |
408 | struct ubi_debug_info *d = ubi->dbg; | 408 | struct ubi_debug_info *d = ubi->dbg; |
409 | 409 | ||
410 | if (!IS_ENABLED(DEBUG_FS)) | 410 | if (!IS_ENABLED(CONFIG_DEBUG_FS)) |
411 | return 0; | 411 | return 0; |
412 | 412 | ||
413 | n = snprintf(d->dfs_dir_name, UBI_DFS_DIR_LEN + 1, UBI_DFS_DIR_NAME, | 413 | n = snprintf(d->dfs_dir_name, UBI_DFS_DIR_LEN + 1, UBI_DFS_DIR_NAME, |
@@ -477,6 +477,6 @@ out: | |||
477 | */ | 477 | */ |
478 | void ubi_debugfs_exit_dev(struct ubi_device *ubi) | 478 | void ubi_debugfs_exit_dev(struct ubi_device *ubi) |
479 | { | 479 | { |
480 | if (IS_ENABLED(DEBUG_FS)) | 480 | if (IS_ENABLED(CONFIG_DEBUG_FS)) |
481 | debugfs_remove_recursive(ubi->dbg->dfs_dir); | 481 | debugfs_remove_recursive(ubi->dbg->dfs_dir); |
482 | } | 482 | } |