Commit 60c47c62 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman
Browse files

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 <>
Signed-off-by: default avatarDevendra Naga <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent d6b87b0a
......@@ -446,6 +446,12 @@ static int cp_tm1217_probe(struct i2c_client *client,
/* Mask all the interrupts */
retval = cp_tm1217_mask_interrupt(ts);
if (retval) {
dev_err(ts->dev, "failed to mask interrupts, error: %d\n",
return retval;
/* Read the controller information */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment