--- test12-pre3b/drivers/input-pre3/joydev.c Thu Nov 30 12:02:31 2000 +++ linux/drivers/input/joydev.c Mon Dec 11 10:07:42 2000 @@ -86,6 +86,21 @@ MODULE_DESCRIPTION("Joystick device driver"); MODULE_SUPPORTED_DEVICE("input/js"); + +#ifdef CONFIG_HOTPLUG +#if defined(CONFIG_USB_HID) || defined(CONFIG_USB_HID_MODULE) +#include + +static const struct usb_device_id usb_table [] = { + /* hid class, joystick protocol */ + { bInterfaceClass: 3, bInterfaceSubClass: 1, bInterfaceProtocol: 4}, + { } /* Terminating entry */ +}; +MODULE_DEVICE_TABLE (usb, usb_table); +#endif /* USB HID */ +#endif /* HOTPLUG */ + + static int joydev_correct(int value, struct js_corr *corr) { switch (corr->type) { --- test12-pre3b/drivers/input-pre3/keybdev.c Thu Nov 30 12:02:31 2000 +++ linux/drivers/input/keybdev.c Mon Dec 11 10:07:11 2000 @@ -36,6 +36,19 @@ #include #include +#ifdef CONFIG_HOTPLUG +#if defined(CONFIG_USB_HID) || defined(CONFIG_USB_HID_MODULE) +#include + +static const struct usb_device_id usb_table [] = { + /* hid class, keyboard protocol */ + { bInterfaceClass: 3, bInterfaceSubClass: 1, bInterfaceProtocol: 1}, + { } /* Terminating entry */ +}; +MODULE_DEVICE_TABLE (usb, usb_table); +#endif /* USB HID */ +#endif /* HOTPLUG */ + #if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(__alpha__) || defined(__mips__) static int x86_sysrq_alt = 0; --- test12-pre3b/drivers/input-pre3/mousedev.c Thu Nov 30 12:02:31 2000 +++ linux/drivers/input/mousedev.c Mon Dec 11 10:06:52 2000 @@ -48,6 +48,19 @@ #define CONFIG_INPUT_MOUSEDEV_SCREEN_Y 768 #endif +#ifdef CONFIG_HOTPLUG +#if defined(CONFIG_USB_HID) || defined(CONFIG_USB_HID_MODULE) +#include + +static const struct usb_device_id usb_table [] = { + /* hid class, mouse protocol */ + { bInterfaceClass: 3, bInterfaceSubClass: 1, bInterfaceProtocol: 2}, + { } /* Terminating entry */ +}; +MODULE_DEVICE_TABLE (usb, usb_table); +#endif /* USB HID */ +#endif /* HOTPLUG */ + struct mousedev { int exist; int open;