Fix debugfs_create_file's error checking method for arch/sh/mm/
authorZhaolei <zhaolei@cn.fujitsu.com>
Fri, 17 Oct 2008 11:25:09 +0000 (19:25 +0800)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 20 Oct 2008 01:40:21 +0000 (10:40 +0900)
debugfs_create_file() 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>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

No differences found