|
@@ -1532,6 +1532,14 @@ void hid_unregister_driver(struct hid_driver *hdrv)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(hid_unregister_driver);
|
|
EXPORT_SYMBOL_GPL(hid_unregister_driver);
|
|
|
|
|
|
|
|
+#ifdef CONFIG_HID_COMPAT
|
|
|
|
+static void hid_compat_load(struct work_struct *ws)
|
|
|
|
+{
|
|
|
|
+ request_module("hid-dummy");
|
|
|
|
+}
|
|
|
|
+static DECLARE_WORK(hid_compat_work, hid_compat_load);
|
|
|
|
+#endif
|
|
|
|
+
|
|
static int __init hid_init(void)
|
|
static int __init hid_init(void)
|
|
{
|
|
{
|
|
int ret;
|
|
int ret;
|
|
@@ -1546,6 +1554,10 @@ static int __init hid_init(void)
|
|
if (ret)
|
|
if (ret)
|
|
goto err_bus;
|
|
goto err_bus;
|
|
|
|
|
|
|
|
+#ifdef CONFIG_HID_COMPAT
|
|
|
|
+ schedule_work(&hid_compat_work);
|
|
|
|
+#endif
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
err_bus:
|
|
err_bus:
|
|
bus_unregister(&hid_bus_type);
|
|
bus_unregister(&hid_bus_type);
|