Commit afa5eb7c68689ced4284f01c96feed44a2d0a127
Committed by
Jiri Kosina
1 parent
b2ddd54e19
Exists in
master
and in
39 other branches
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>
Showing 30 changed files with 0 additions and 195 deletions Side-by-side Diff
- Documentation/feature-removal-schedule.txt
- drivers/hid/Kconfig
- drivers/hid/Makefile
- drivers/hid/hid-a4tech.c
- drivers/hid/hid-apple.c
- drivers/hid/hid-belkin.c
- drivers/hid/hid-cherry.c
- drivers/hid/hid-chicony.c
- drivers/hid/hid-core.c
- drivers/hid/hid-cypress.c
- drivers/hid/hid-drff.c
- drivers/hid/hid-dummy.c
- drivers/hid/hid-ezkey.c
- drivers/hid/hid-gaff.c
- drivers/hid/hid-gyration.c
- drivers/hid/hid-kensington.c
- drivers/hid/hid-kye.c
- drivers/hid/hid-lg.c
- drivers/hid/hid-microsoft.c
- drivers/hid/hid-monterey.c
- drivers/hid/hid-ntrig.c
- drivers/hid/hid-petalynx.c
- drivers/hid/hid-pl.c
- drivers/hid/hid-samsung.c
- drivers/hid/hid-sony.c
- drivers/hid/hid-sunplus.c
- drivers/hid/hid-tmff.c
- drivers/hid/hid-topseed.c
- drivers/hid/hid-zpff.c
- include/linux/hid.h
Documentation/feature-removal-schedule.txt
... | ... | @@ -273,13 +273,6 @@ |
273 | 273 | |
274 | 274 | --------------------------- |
275 | 275 | |
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 | - | |
283 | 276 | What: print_fn_descriptor_symbol() |
284 | 277 | When: October 2009 |
285 | 278 | Why: The %pF vsprintf format provides the same functionality in a |
drivers/hid/Kconfig
... | ... | @@ -70,18 +70,6 @@ |
70 | 70 | menu "Special HID drivers" |
71 | 71 | depends on HID |
72 | 72 | |
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 | - | |
85 | 73 | config HID_A4TECH |
86 | 74 | tristate "A4 tech" if EMBEDDED |
87 | 75 | depends on USB_HID |
drivers/hid/Makefile
drivers/hid/hid-a4tech.c
drivers/hid/hid-apple.c
drivers/hid/hid-belkin.c
drivers/hid/hid-cherry.c
drivers/hid/hid-chicony.c
drivers/hid/hid-core.c
... | ... | @@ -1819,15 +1819,6 @@ |
1819 | 1819 | } |
1820 | 1820 | EXPORT_SYMBOL_GPL(hid_unregister_driver); |
1821 | 1821 | |
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 | - | |
1831 | 1822 | static int __init hid_init(void) |
1832 | 1823 | { |
1833 | 1824 | int ret; |
... | ... | @@ -1842,15 +1833,6 @@ |
1842 | 1833 | if (ret) |
1843 | 1834 | goto err_bus; |
1844 | 1835 | |
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 | - | |
1854 | 1836 | return 0; |
1855 | 1837 | err_bus: |
1856 | 1838 | bus_unregister(&hid_bus_type); |
... | ... | @@ -1860,9 +1842,6 @@ |
1860 | 1842 | |
1861 | 1843 | static void __exit hid_exit(void) |
1862 | 1844 | { |
1863 | -#ifdef CONFIG_HID_COMPAT | |
1864 | - destroy_workqueue(hid_compat_wq); | |
1865 | -#endif | |
1866 | 1845 | hidraw_exit(); |
1867 | 1846 | bus_unregister(&hid_bus_type); |
1868 | 1847 | } |
drivers/hid/hid-cypress.c
drivers/hid/hid-drff.c
drivers/hid/hid-dummy.c
1 | -#include <linux/autoconf.h> | |
2 | -#include <linux/module.h> | |
3 | -#include <linux/hid.h> | |
4 | - | |
5 | -static int __init hid_dummy_init(void) | |
6 | -{ | |
7 | -#ifdef CONFIG_HID_A4TECH_MODULE | |
8 | - HID_COMPAT_CALL_DRIVER(a4tech); | |
9 | -#endif | |
10 | -#ifdef CONFIG_HID_APPLE_MODULE | |
11 | - HID_COMPAT_CALL_DRIVER(apple); | |
12 | -#endif | |
13 | -#ifdef CONFIG_HID_BELKIN_MODULE | |
14 | - HID_COMPAT_CALL_DRIVER(belkin); | |
15 | -#endif | |
16 | -#ifdef CONFIG_HID_BRIGHT_MODULE | |
17 | - HID_COMPAT_CALL_DRIVER(bright); | |
18 | -#endif | |
19 | -#ifdef CONFIG_HID_CHERRY_MODULE | |
20 | - HID_COMPAT_CALL_DRIVER(cherry); | |
21 | -#endif | |
22 | -#ifdef CONFIG_HID_CHICONY_MODULE | |
23 | - HID_COMPAT_CALL_DRIVER(chicony); | |
24 | -#endif | |
25 | -#ifdef CONFIG_HID_CYPRESS_MODULE | |
26 | - HID_COMPAT_CALL_DRIVER(cypress); | |
27 | -#endif | |
28 | -#ifdef CONFIG_HID_DELL_MODULE | |
29 | - HID_COMPAT_CALL_DRIVER(dell); | |
30 | -#endif | |
31 | -#ifdef CONFIG_DRAGONRISE_FF_MODULE | |
32 | - HID_COMPAT_CALL_DRIVER(dragonrise); | |
33 | -#endif | |
34 | -#ifdef CONFIG_HID_EZKEY_MODULE | |
35 | - HID_COMPAT_CALL_DRIVER(ezkey); | |
36 | -#endif | |
37 | -#ifdef CONFIG_HID_KYE_MODULE | |
38 | - HID_COMPAT_CALL_DRIVER(kye); | |
39 | -#endif | |
40 | -#ifdef CONFIG_HID_GYRATION_MODULE | |
41 | - HID_COMPAT_CALL_DRIVER(gyration); | |
42 | -#endif | |
43 | -#ifdef CONFIG_HID_KENSINGTON_MODULE | |
44 | - HID_COMPAT_CALL_DRIVER(kensington); | |
45 | -#endif | |
46 | -#ifdef CONFIG_HID_LOGITECH_MODULE | |
47 | - HID_COMPAT_CALL_DRIVER(logitech); | |
48 | -#endif | |
49 | -#ifdef CONFIG_HID_MICROSOFT_MODULE | |
50 | - HID_COMPAT_CALL_DRIVER(microsoft); | |
51 | -#endif | |
52 | -#ifdef CONFIG_HID_MONTEREY_MODULE | |
53 | - HID_COMPAT_CALL_DRIVER(monterey); | |
54 | -#endif | |
55 | -#ifdef CONFIG_HID_NTRIG_MODULE | |
56 | - HID_COMPAT_CALL_DRIVER(ntrig); | |
57 | -#endif | |
58 | -#ifdef CONFIG_HID_PANTHERLORD_MODULE | |
59 | - HID_COMPAT_CALL_DRIVER(pantherlord); | |
60 | -#endif | |
61 | -#ifdef CONFIG_HID_PETALYNX_MODULE | |
62 | - HID_COMPAT_CALL_DRIVER(petalynx); | |
63 | -#endif | |
64 | -#ifdef CONFIG_HID_SAMSUNG_MODULE | |
65 | - HID_COMPAT_CALL_DRIVER(samsung); | |
66 | -#endif | |
67 | -#ifdef CONFIG_HID_SONY_MODULE | |
68 | - HID_COMPAT_CALL_DRIVER(sony); | |
69 | -#endif | |
70 | -#ifdef CONFIG_HID_SUNPLUS_MODULE | |
71 | - HID_COMPAT_CALL_DRIVER(sunplus); | |
72 | -#endif | |
73 | -#ifdef CONFIG_GREENASIA_FF_MODULE | |
74 | - HID_COMPAT_CALL_DRIVER(greenasia); | |
75 | -#endif | |
76 | -#ifdef CONFIG_THRUSTMASTER_FF_MODULE | |
77 | - HID_COMPAT_CALL_DRIVER(thrustmaster); | |
78 | -#endif | |
79 | -#ifdef CONFIG_ZEROPLUS_FF_MODULE | |
80 | - HID_COMPAT_CALL_DRIVER(zeroplus); | |
81 | -#endif | |
82 | - | |
83 | - return -EIO; | |
84 | -} | |
85 | -module_init(hid_dummy_init); | |
86 | - | |
87 | -MODULE_LICENSE("GPL"); |
drivers/hid/hid-ezkey.c
drivers/hid/hid-gaff.c
drivers/hid/hid-gyration.c
drivers/hid/hid-kensington.c
drivers/hid/hid-kye.c
drivers/hid/hid-lg.c
drivers/hid/hid-microsoft.c
drivers/hid/hid-monterey.c
drivers/hid/hid-ntrig.c
drivers/hid/hid-petalynx.c
drivers/hid/hid-pl.c
drivers/hid/hid-samsung.c
drivers/hid/hid-sony.c
drivers/hid/hid-sunplus.c
drivers/hid/hid-tmff.c
drivers/hid/hid-topseed.c
drivers/hid/hid-zpff.c
include/linux/hid.h
... | ... | @@ -792,21 +792,5 @@ |
792 | 792 | __FILE__ , ## arg) |
793 | 793 | #endif /* HID_FF */ |
794 | 794 | |
795 | -#ifdef __KERNEL__ | |
796 | -#ifdef CONFIG_HID_COMPAT | |
797 | -#define HID_COMPAT_LOAD_DRIVER(name) \ | |
798 | -/* prototype to avoid sparse warning */ \ | |
799 | -extern void hid_compat_##name(void); \ | |
800 | -void hid_compat_##name(void) { } \ | |
801 | -EXPORT_SYMBOL(hid_compat_##name) | |
802 | -#else | |
803 | -#define HID_COMPAT_LOAD_DRIVER(name) | |
804 | -#endif /* HID_COMPAT */ | |
805 | -#define HID_COMPAT_CALL_DRIVER(name) do { \ | |
806 | - extern void hid_compat_##name(void); \ | |
807 | - hid_compat_##name(); \ | |
808 | -} while (0) | |
809 | -#endif /* __KERNEL__ */ | |
810 | - | |
811 | 795 | #endif |