]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
input: touch: raydium: fix panic when touch panel not attached
authorMark Kuo <mkuo@nvidia.com>
Fri, 21 Dec 2012 11:21:31 +0000 (19:21 +0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:49:04 +0000 (12:49 -0700)
commit4d98bf69a361db72b2641166d16653bf3eea8265
tree388d082ee4ed38d8fb44cd8848704682ec7c74ef
parentb2f92e8eff8fa0490914efda2b1219cff5026444
input: touch: raydium: fix panic when touch panel not attached

Use rm31080_spi_checking() to check if the hardware is present,
and move the checking to the front of the driver init function
so as to avoid registering suspend/resume function which later
causes kernel panic when system suspends.

bug 1207093

Change-Id: I775e4cae70745ee5ef9ae29888a95b4b770df0db
Signed-off-by: Mark Kuo <mkuo@nvidia.com>
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/187746
(cherry picked from commit 41f0d55dcf8ea7b6dd47b6ea7c19eff319128784)
Reviewed-on: http://git-master/r/189030
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
drivers/input/touchscreen/rm31080a_ts.c