Input: register input core earlier Now that input core is integrated with sysfs input class should be fully registered before anyone tries to use it. Move input.o to the top of the drivers/Makefile while leaving the rest of the input system in the old place. Signed-off-by: Dmitry Torokhov --- drivers/Makefile | 4 ++++ drivers/input/Makefile | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) Index: linux/drivers/Makefile =================================================================== --- linux.orig/drivers/Makefile +++ linux/drivers/Makefile @@ -5,6 +5,10 @@ # Rewritten to use lists instead of if-statements. # +# we need input core early so input class is registered before anyone +# tries to use it. +obj-$(CONFIG_INPUT) += input/input.o + obj-$(CONFIG_PCI) += pci/ usb/ obj-$(CONFIG_PARISC) += parisc/ obj-y += video/ Index: linux/drivers/input/Makefile =================================================================== --- linux.orig/drivers/input/Makefile +++ linux/drivers/input/Makefile @@ -4,7 +4,8 @@ # Each configuration option enables a list of files. -obj-$(CONFIG_INPUT) += input.o +# note that input.o is registered early from drivers/Makefile + obj-$(CONFIG_INPUT_MOUSEDEV) += mousedev.o obj-$(CONFIG_INPUT_JOYDEV) += joydev.o obj-$(CONFIG_INPUT_EVDEV) += evdev.o