02ae9a1a8b
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>
19 lines
335 B
C
19 lines
335 B
C
#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");
|