Commit 63990038 authored by Daniel Kurtz's avatar Daniel Kurtz Committed by Henrik Rydberg

Input: atmel_mxt_ts - warn if sysfs could not be created

If sysfs entry creation fails, the driver is still usable, so don't
just abort probe.  Just warn and continue.
Signed-off-by: default avatarDaniel Kurtz <djkurtz@chromium.org>
Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
parent e1e1658d
...@@ -1172,13 +1172,10 @@ static int __devinit mxt_probe(struct i2c_client *client, ...@@ -1172,13 +1172,10 @@ static int __devinit mxt_probe(struct i2c_client *client,
error = sysfs_create_group(&client->dev.kobj, &mxt_attr_group); error = sysfs_create_group(&client->dev.kobj, &mxt_attr_group);
if (error) if (error)
goto err_unregister_device; dev_warn(&client->dev, "error creating sysfs entries.\n");
return 0; return 0;
err_unregister_device:
input_unregister_device(input_dev);
input_dev = NULL;
err_free_irq: err_free_irq:
free_irq(client->irq, data); free_irq(client->irq, data);
err_free_object: err_free_object:
......
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