summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@samsung.com>2017-09-22 19:57:53 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-09-22 20:06:58 +0300
commitc2690bd69788c618bb75e1c7a71582ea93375fdf (patch)
tree7ae6cc067698c1e1577ee847912d89c17890133f /drivers/input/touchscreen
parent7ed802c0c08dbf431ced02434a3d81365f1865d9 (diff)
downloadlinux-c2690bd69788c618bb75e1c7a71582ea93375fdf.tar.xz
Input: stmfts - use devm_device_add_group
instead of sysfs_create_group. Signed-off-by: Andi Shyti <andi.shyti@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/stmfts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/stmfts.c b/drivers/input/touchscreen/stmfts.c
index 157fdb4bb2e8..2351199189a4 100644
--- a/drivers/input/touchscreen/stmfts.c
+++ b/drivers/input/touchscreen/stmfts.c
@@ -727,8 +727,7 @@ static int stmfts_probe(struct i2c_client *client,
}
}
- err = sysfs_create_group(&sdata->client->dev.kobj,
- &stmfts_attribute_group);
+ err = devm_device_add_group(&client->dev, &stmfts_attribute_group);
if (err)
return err;
@@ -740,7 +739,6 @@ static int stmfts_probe(struct i2c_client *client,
static int stmfts_remove(struct i2c_client *client)
{
pm_runtime_disable(&client->dev);
- sysfs_remove_group(&client->dev.kobj, &stmfts_attribute_group);
return 0;
}