HSI: omap_ssi_port: Fix return value check in ssi_debug_add_port()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 30 Jul 2014 00:53:20 +0000 (08:53 +0800)
committerSebastian Reichel <sre@kernel.org>
Wed, 30 Jul 2014 22:20:21 +0000 (00:20 +0200)
commitc2acb7c4d566a1735e255acc7260e1dec6b9a7c8
treee71cd8ac77f44295e2ae5c49d814e26b0072111d
parent0a0ea07d3dff0918484f01c576f098dd4911b1af
HSI: omap_ssi_port: Fix return value check in ssi_debug_add_port()

In case of error, the function debugfs_create_*() returns NULL
pointer not ERR_PTR() if debugfs is enabled. The IS_ERR() test
in the return value check should be replaced with NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/controllers/omap_ssi_port.c