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)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 27 Apr 2012 16:43:26 +0000 (19:43 +0300)
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>

No differences found