OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed802c
)
Input: stmfts - use devm_device_add_group
author
Andi Shyti
<andi.shyti@samsung.com>
Fri, 22 Sep 2017 16:57:53 +0000
(09:57 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Fri, 22 Sep 2017 17:06:58 +0000
(10:06 -0700)
instead of sysfs_create_group.
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/stmfts.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/stmfts.c
b/drivers/input/touchscreen/stmfts.c
index
157fdb4
..
2351199
100644
(file)
--- 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;
}