提交 47610602 编写于 作者: D Dmitry Torokhov

Input: fix input device deregistration

Remove main attribute group (name, phys, uniq) when unregistering
input devices.
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 5f945489
......@@ -805,6 +805,7 @@ void input_unregister_device(struct input_dev *dev)
sysfs_remove_group(&dev->cdev.kobj, &input_dev_caps_attr_group);
sysfs_remove_group(&dev->cdev.kobj, &input_dev_id_attr_group);
sysfs_remove_group(&dev->cdev.kobj, &input_dev_group);
class_device_unregister(&dev->cdev);
input_wakeup_procfs_readers();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册