Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47610602 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: fix input device deregistration



Remove main attribute group (name, phys, uniq) when unregistering
input devices.

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 5f945489
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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();