]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Fix debugfs_create_*'s error checking method for arm/plat-omap
authorZhaolei <zhaolei@cn.fujitsu.com>
Fri, 17 Oct 2008 10:07:31 +0000 (18:07 +0800)
committerTony Lindgren <tony@atomide.com>
Fri, 17 Oct 2008 13:15:32 +0000 (06:15 -0700)
commitb50177d90c326ad95006864f470bc26902077398
treedfeb9d9f7a82c9cd94b9772f07147a68d4e89533
parentacb7f883f1ec61fd4dcb840a66ddca051ad8f2ef
Fix debugfs_create_*'s error checking method for arm/plat-omap

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

Comparing to PATCH v1, because clk_debugfs_init is included in
"#if defined CONFIG_DEBUG_FS", we only need to check NULL return.
Thanks Li Zefan <lizf@cn.fujitsu.com>

debugfs_create_u8() and other function's return value's checking method are
also fixed in this patch.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/clock.c