diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-05-16 09:49:22 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-10-14 21:50:50 (GMT) |
commit | 02ae9a1a8bc1d08a8fd5f6a0b8bde400b0f891b9 (patch) | |
tree | a7584d1e9bcabdd22e63c12326e696c94d38dad8 /drivers/hid/hid-dummy.c | |
parent | 8c19a51591d06f5226499972567f528cf6066bb7 (diff) | |
download | linux-fsl-qoriq-02ae9a1a8bc1d08a8fd5f6a0b8bde400b0f891b9.tar.xz |
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 0000000..b76c44e --- /dev/null +++ b/drivers/hid/hid-dummy.c @@ -0,0 +1,18 @@ +#include <linux/autoconf.h> +#include <linux/module.h> +#include <linux/hid.h> + +static int __init hid_dummy_init(void) +{ +#ifdef CONFIG_HID_APPLE_MODULE + HID_COMPAT_CALL_DRIVER(apple); +#endif +#ifdef CONFIG_HID_LOGITECH_MODULE + HID_COMPAT_CALL_DRIVER(logitech); +#endif + + return -EIO; +} +module_init(hid_dummy_init); + +MODULE_LICENSE("GPL"); |