diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-11-02 22:51:46 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-11-02 22:51:46 -0500 |
commit | 5f94548982ad8cb9867297e9e18e50ec7b8accea (patch) | |
tree | bddaa8a9b37decec5663d2a8d17c93dd732ad8c8 /include/linux | |
parent | 438c9da5143c6a563c5c684b91eb7848a7b2d83d (diff) |
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')
-rw-r--r-- | include/linux/input.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index f623c745c21..3c5823368dd 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 *); |