aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/input.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2006-01-10 01:59:51 -0500
committerDmitry Torokhov <dtor_core@ameritech.net>2006-01-10 01:59:51 -0500
commite2bd470ec7ebccb338758b5ab1bebf1c7b926b04 (patch)
tree03a3b742132b250a1d3f234e33101d452a7e32a1 /drivers/input/input.c
parentInput: wistron - do not crash if BIOS does not support interface (diff)
downloadlinux-dev-e2bd470ec7ebccb338758b5ab1bebf1c7b926b04.tar.xz
linux-dev-e2bd470ec7ebccb338758b5ab1bebf1c7b926b04.zip
Input: prepare for f_ops constness
Avoid doing assignments to a live ->fops so it can be marked as 'const'. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r--drivers/input/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index ef5824c8846b..fe33ff334e27 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -477,8 +477,8 @@ static int __init input_proc_init(void)
entry->owner = THIS_MODULE;
input_fileops = *entry->proc_fops;
+ input_fileops.poll = input_devices_poll;
entry->proc_fops = &input_fileops;
- entry->proc_fops->poll = input_devices_poll;
entry = create_proc_read_entry("handlers", 0, proc_bus_input_dir, input_handlers_read, NULL);
if (!entry)