aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 37190ab1f817..3ad942ca8725 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -1184,10 +1184,13 @@ static int __devinit mxt_probe(struct i2c_client *client,
1184 1184
1185 error = sysfs_create_group(&client->dev.kobj, &mxt_attr_group); 1185 error = sysfs_create_group(&client->dev.kobj, &mxt_attr_group);
1186 if (error) 1186 if (error)
1187 dev_warn(&client->dev, "error creating sysfs entries.\n"); 1187 goto err_unregister_device;
1188 1188
1189 return 0; 1189 return 0;
1190 1190
1191err_unregister_device:
1192 input_unregister_device(input_dev);
1193 input_dev = NULL;
1191err_free_irq: 1194err_free_irq:
1192 free_irq(client->irq, data); 1195 free_irq(client->irq, data);
1193err_free_object: 1196err_free_object: