mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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>
This commit is contained in:
parent
7ed802c0c0
commit
c2690bd697
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue