cyttsp: move early_suspend registration to the end of probe
authorJianwei Yang <jianwei.yang@intel.com>
Wed, 3 Aug 2011 04:36:55 +0000 (12:36 +0800)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:37:52 +0000 (12:37 -0800)
commit8a734b29c51e48723c328970661710bc407a27ea
tree414a8ad00ce6a5f6b3f155d9aeabc1089ad088e9
parent45de904fc72bc5d94dedd0a5a0e45c0909c1a08e
cyttsp: move early_suspend registration to the end of probe

BZ: 6424

early_suspend may be registered even if driver probe fails, this
will cause kernel panic when the early_suspend is executed without
driver registered.

Change-Id: If898bce838f40a4c28e7c4b997e742c541891618
Signed-off-by: Jianwei Yang <jianwei.yang@intel.com>
drivers/input/touchscreen/cyttsp_core.c