diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-05-16 05:49:22 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-10-14 17:50:50 -0400 |
commit | 02ae9a1a8bc1d08a8fd5f6a0b8bde400b0f891b9 (patch) | |
tree | a7584d1e9bcabdd22e63c12326e696c94d38dad8 /drivers/hid/hid-dummy.c | |
parent | 8c19a51591d06f5226499972567f528cf6066bb7 (diff) |
HID: add compat support
Add compat option to hid code to allow loading of all modules on
systems which don't allow autoloading because of old userspace.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-dummy.c')
-rw-r--r-- | drivers/hid/hid-dummy.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/hid/hid-dummy.c b/drivers/hid/hid-dummy.c new file mode 100644 index 000000000000..b76c44efe1b8 --- /dev/null +++ b/drivers/hid/hid-dummy.c | |||
@@ -0,0 +1,18 @@ | |||
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_APPLE_MODULE | ||
8 | HID_COMPAT_CALL_DRIVER(apple); | ||
9 | #endif | ||
10 | #ifdef CONFIG_HID_LOGITECH_MODULE | ||
11 | HID_COMPAT_CALL_DRIVER(logitech); | ||
12 | #endif | ||
13 | |||
14 | return -EIO; | ||
15 | } | ||
16 | module_init(hid_dummy_init); | ||
17 | |||
18 | MODULE_LICENSE("GPL"); | ||