cptm1217: check if interrupts are masked at probe
authorDevendra Naga <devendra.aaru@gmail.com>
Fri, 2 Jan 2015 18:17:06 +0000 (13:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Jan 2015 00:05:02 +0000 (16:05 -0800)
commit60c47c62f012b4f551132374e37e4f93a9596107
tree11789a1b06b62fc7fe676636b949b62b2b50d316
parentd6b87b0a64879fd548e836bdc901ad20de99cd4b
cptm1217: check if interrupts are masked at probe

the function cp_tm1217_mask_interrupt can return failure.
added the check and the failure path.

Cc: Ramesh Agarwal <ramesh.agarwal@intel.com>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/cptm1217/clearpad_tm1217.c