ARM: OMAP3+: SmartReflex: fix the use of debugfs_create_* API
authorJean Pihet <jean.pihet@newoldbits.com>
Wed, 29 Feb 2012 22:33:48 +0000 (23:33 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 15 May 2016 12:43:21 +0000 (15:43 +0300)
commit5c32a1aedd3c595911c3dc1511b3205c701aa814
treea582a0dea7501bc2c36eaabc75151e1225c768ae
parent33e870668c1a84825be845cfdae81d16f1ccb96c
ARM: OMAP3+: SmartReflex: fix the use of debugfs_create_* API

The debugfs_create_* API returns a return code or NULL
in the return ptr in case of problem.
Fix the smartreflex code to take this into account.

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