aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/input.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-11-02 22:51:46 -0500
committerDmitry Torokhov <dtor_core@ameritech.net>2005-11-02 22:51:46 -0500
commit5f94548982ad8cb9867297e9e18e50ec7b8accea (patch)
treebddaa8a9b37decec5663d2a8d17c93dd732ad8c8 /include/linux/input.h
parentInput: locomokbd - convert to dynamic input allocation (diff)
downloadlinux-dev-5f94548982ad8cb9867297e9e18e50ec7b8accea.tar.xz
linux-dev-5f94548982ad8cb9867297e9e18e50ec7b8accea.zip
Input: do not register statically allocated devices
Do not register statically allocated input devices to prevent OOPS when attaching input interfaces since it requires class device to be properly initialized. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r--include/linux/input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index f623c745c21c..3c5823368ddb 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -1007,7 +1007,7 @@ static inline void input_put_device(struct input_dev *dev)
class_device_put(&dev->cdev);
}
-void input_register_device(struct input_dev *);
+int input_register_device(struct input_dev *);
void input_unregister_device(struct input_dev *);
void input_register_handler(struct input_handler *);