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>
This commit is contained in:
parent
c28c358367
commit
e2bd470ec7
1 changed files with 1 additions and 1 deletions
|
@ -477,8 +477,8 @@ static int __init input_proc_init(void)
|
||||||
|
|
||||||
entry->owner = THIS_MODULE;
|
entry->owner = THIS_MODULE;
|
||||||
input_fileops = *entry->proc_fops;
|
input_fileops = *entry->proc_fops;
|
||||||
|
input_fileops.poll = input_devices_poll;
|
||||||
entry->proc_fops = &input_fileops;
|
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);
|
entry = create_proc_read_entry("handlers", 0, proc_bus_input_dir, input_handlers_read, NULL);
|
||||||
if (!entry)
|
if (!entry)
|
||||||
|
|
Loading…
Reference in a new issue