Skip to content
Commit e621f266 authored by Zhaolei's avatar Zhaolei Committed by Tony Lindgren
Browse files

ARM: OMAP: 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: default avatarZhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 85d7a070
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment