@@ -2006,6 +2006,13 @@ static int mxt_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(mxt_pm_ops, mxt_suspend, mxt_resume);
+static void mxt_shutdown(struct i2c_client *client)
+{
+ struct mxt_data *data = i2c_get_clientdata(client);
+
+ disable_irq(data->irq);
+}
+
static const struct i2c_device_id mxt_id[] = {
{ "qt602240_ts", 0 },
{ "atmel_mxt_ts", 0 },
@@ -2023,6 +2030,7 @@ static struct i2c_driver mxt_driver = {
},
.probe = mxt_probe,
.remove = mxt_remove,
+ .shutdown = mxt_shutdown,
.id_table = mxt_id,
};