Skip to content

Commit afa5eb7

Browse files
jirislabyJiri Kosina
authored andcommitted
HID: remove compat stuff
This removal was scheduled and there is no problem with later distros to adapt for the new bus, thanks to aliases. module-init-tools map files are deprecated nowadays, so that the patch which introduced hid ones into the m-i-t won't be accepted and hence there is no reason for leaving compat stuff in. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent b2ddd54 commit afa5eb7

30 files changed

Lines changed: 0 additions & 195 deletions

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,6 @@ Who: Glauber Costa <gcosta@redhat.com>
273273

274274
---------------------------
275275

276-
What: remove HID compat support
277-
When: 2.6.29
278-
Why: needed only as a temporary solution until distros fix themselves up
279-
Who: Jiri Slaby <jirislaby@gmail.com>
280-
281-
---------------------------
282-
283276
What: print_fn_descriptor_symbol()
284277
When: October 2009
285278
Why: The %pF vsprintf format provides the same functionality in a

‎drivers/hid/Kconfig‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,6 @@ source "drivers/hid/usbhid/Kconfig"
7070
menu "Special HID drivers"
7171
depends on HID
7272

73-
config HID_COMPAT
74-
bool "Load all HID drivers on hid core load"
75-
default y
76-
---help---
77-
Compatible option for older userspace. If you have system without udev
78-
support of module loading through aliases and also old
79-
module-init-tools which can't handle hid bus, choose Y here. Otherwise
80-
say N. If you say N and your userspace is old enough, the only
81-
functionality you lose is modules autoloading.
82-
83-
If unsure, say Y.
84-
8573
config HID_A4TECH
8674
tristate "A4 tech" if EMBEDDED
8775
depends on USB_HID

‎drivers/hid/Makefile‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ obj-$(CONFIG_HID) += hid.o
88
hid-$(CONFIG_HID_DEBUG) += hid-debug.o
99
hid-$(CONFIG_HIDRAW) += hidraw.o
1010

11-
ifdef CONFIG_HID_COMPAT
12-
obj-m += hid-dummy.o
13-
endif
14-
1511
hid-logitech-objs := hid-lg.o
1612
ifdef CONFIG_LOGITECH_FF
1713
hid-logitech-objs += hid-lgff.o

‎drivers/hid/hid-a4tech.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,3 @@ static void a4_exit(void)
158158
module_init(a4_init);
159159
module_exit(a4_exit);
160160
MODULE_LICENSE("GPL");
161-
162-
HID_COMPAT_LOAD_DRIVER(a4tech);

‎drivers/hid/hid-apple.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,5 +474,3 @@ static void apple_exit(void)
474474
module_init(apple_init);
475475
module_exit(apple_exit);
476476
MODULE_LICENSE("GPL");
477-
478-
HID_COMPAT_LOAD_DRIVER(apple);

‎drivers/hid/hid-belkin.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,3 @@ static void belkin_exit(void)
101101
module_init(belkin_init);
102102
module_exit(belkin_exit);
103103
MODULE_LICENSE("GPL");
104-
105-
HID_COMPAT_LOAD_DRIVER(belkin);

‎drivers/hid/hid-cherry.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,3 @@ static void ch_exit(void)
8383
module_init(ch_init);
8484
module_exit(ch_exit);
8585
MODULE_LICENSE("GPL");
86-
87-
HID_COMPAT_LOAD_DRIVER(cherry);

‎drivers/hid/hid-chicony.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,3 @@ static void ch_exit(void)
7676
module_init(ch_init);
7777
module_exit(ch_exit);
7878
MODULE_LICENSE("GPL");
79-
80-
HID_COMPAT_LOAD_DRIVER(chicony);

‎drivers/hid/hid-core.c‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,15 +1819,6 @@ void hid_unregister_driver(struct hid_driver *hdrv)
18191819
}
18201820
EXPORT_SYMBOL_GPL(hid_unregister_driver);
18211821

1822-
#ifdef CONFIG_HID_COMPAT
1823-
static void hid_compat_load(struct work_struct *ws)
1824-
{
1825-
request_module("hid-dummy");
1826-
}
1827-
static DECLARE_WORK(hid_compat_work, hid_compat_load);
1828-
static struct workqueue_struct *hid_compat_wq;
1829-
#endif
1830-
18311822
static int __init hid_init(void)
18321823
{
18331824
int ret;
@@ -1842,15 +1833,6 @@ static int __init hid_init(void)
18421833
if (ret)
18431834
goto err_bus;
18441835

1845-
#ifdef CONFIG_HID_COMPAT
1846-
hid_compat_wq = create_singlethread_workqueue("hid_compat");
1847-
if (!hid_compat_wq) {
1848-
hidraw_exit();
1849-
goto err;
1850-
}
1851-
queue_work(hid_compat_wq, &hid_compat_work);
1852-
#endif
1853-
18541836
return 0;
18551837
err_bus:
18561838
bus_unregister(&hid_bus_type);
@@ -1860,9 +1842,6 @@ static int __init hid_init(void)
18601842

18611843
static void __exit hid_exit(void)
18621844
{
1863-
#ifdef CONFIG_HID_COMPAT
1864-
destroy_workqueue(hid_compat_wq);
1865-
#endif
18661845
hidraw_exit();
18671846
bus_unregister(&hid_bus_type);
18681847
}

‎drivers/hid/hid-cypress.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,3 @@ static void cp_exit(void)
154154
module_init(cp_init);
155155
module_exit(cp_exit);
156156
MODULE_LICENSE("GPL");
157-
158-
HID_COMPAT_LOAD_DRIVER(cypress);

0 commit comments

Comments
 (0)