Commit c2690bd6 authored by Andi Shyti's avatar Andi Shyti Committed by Dmitry Torokhov

Input: stmfts - use devm_device_add_group

instead of sysfs_create_group.
Signed-off-by: default avatarAndi Shyti <andi.shyti@samsung.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 7ed802c0
...@@ -727,8 +727,7 @@ static int stmfts_probe(struct i2c_client *client, ...@@ -727,8 +727,7 @@ static int stmfts_probe(struct i2c_client *client,
} }
} }
err = sysfs_create_group(&sdata->client->dev.kobj, err = devm_device_add_group(&client->dev, &stmfts_attribute_group);
&stmfts_attribute_group);
if (err) if (err)
return err; return err;
...@@ -740,7 +739,6 @@ static int stmfts_probe(struct i2c_client *client, ...@@ -740,7 +739,6 @@ static int stmfts_probe(struct i2c_client *client,
static int stmfts_remove(struct i2c_client *client) static int stmfts_remove(struct i2c_client *client)
{ {
pm_runtime_disable(&client->dev); pm_runtime_disable(&client->dev);
sysfs_remove_group(&client->dev.kobj, &stmfts_attribute_group);
return 0; return 0;
} }
......
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