OSDN Git Service

ARM: OMAP2+: PM debug: fix the use of debugfs_create_* API
authorJean Pihet <jean.pihet@newoldbits.com>
Wed, 1 Feb 2012 08:37:31 +0000 (09:37 +0100)
committerKevin Hilman <khilman@ti.com>
Mon, 5 Mar 2012 23:38:02 +0000 (15:38 -0800)
commit401606fd708885d28ce3c14a2a8fe612f8a6b50f
treec29ad66364c171fc02648914e550484a5dd67efb
parent92206fd292da7632c039f6c4054bdaac08b030c0
ARM: OMAP2+: PM debug: fix the use of debugfs_create_* API

Check the return code pointer value from debugfs_create_dir for error
or NULL.
Also added an additional check to prevent the creation of a 'suspend'
entry at the debugfs root in case a power domain directory cannot be
created.

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/pm-debug.c