Skip to content

Commit

Permalink
Input: atmel_mxt_ts - warn if sysfs could not be created
Browse files Browse the repository at this point in the history
If sysfs entry creation fails, the driver is still usable, so don't
just abort probe.  Just warn and continue.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
  • Loading branch information
Daniel Kurtz authored and Henrik Rydberg committed Jun 29, 2012
1 parent e1e1658 commit 6399003
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/input/touchscreen/atmel_mxt_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,13 +1172,10 @@ static int __devinit mxt_probe(struct i2c_client *client,

error = sysfs_create_group(&client->dev.kobj, &mxt_attr_group);
if (error)
goto err_unregister_device;
dev_warn(&client->dev, "error creating sysfs entries.\n");

return 0;

err_unregister_device:
input_unregister_device(input_dev);
input_dev = NULL;
err_free_irq:
free_irq(client->irq, data);
err_free_object:
Expand Down

0 comments on commit 6399003

Please sign in to comment.