| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Event char devices, giving access to raw input device events. | 2 * Event char devices, giving access to raw input device events. |
| 3 * | 3 * |
| 4 * Copyright (c) 1999-2002 Vojtech Pavlik | 4 * Copyright (c) 1999-2002 Vojtech Pavlik |
| 5 * | 5 * |
| 6 * This program is free software; you can redistribute it and/or modify it | 6 * This program is free software; you can redistribute it and/or modify it |
| 7 * under the terms of the GNU General Public License version 2 as published by | 7 * under the terms of the GNU General Public License version 2 as published by |
| 8 * the Free Software Foundation. | 8 * the Free Software Foundation. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 271 |
| 272 spin_lock_init(&client->buffer_lock); | 272 spin_lock_init(&client->buffer_lock); |
| 273 client->evdev = evdev; | 273 client->evdev = evdev; |
| 274 evdev_attach_client(evdev, client); | 274 evdev_attach_client(evdev, client); |
| 275 | 275 |
| 276 error = evdev_open_device(evdev); | 276 error = evdev_open_device(evdev); |
| 277 if (error) | 277 if (error) |
| 278 goto err_free_client; | 278 goto err_free_client; |
| 279 | 279 |
| 280 file->private_data = client; | 280 file->private_data = client; |
| 281 nonseekable_open(inode, file); |
| 282 |
| 281 return 0; | 283 return 0; |
| 282 | 284 |
| 283 err_free_client: | 285 err_free_client: |
| 284 evdev_detach_client(evdev, client); | 286 evdev_detach_client(evdev, client); |
| 285 kfree(client); | 287 kfree(client); |
| 286 err_put_evdev: | 288 err_put_evdev: |
| 287 put_device(&evdev->dev); | 289 put_device(&evdev->dev); |
| 288 return error; | 290 return error; |
| 289 } | 291 } |
| 290 | 292 |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 { | 893 { |
| 892 input_unregister_handler(&evdev_handler); | 894 input_unregister_handler(&evdev_handler); |
| 893 } | 895 } |
| 894 | 896 |
| 895 module_init(evdev_init); | 897 module_init(evdev_init); |
| 896 module_exit(evdev_exit); | 898 module_exit(evdev_exit); |
| 897 | 899 |
| 898 MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>"); | 900 MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>"); |
| 899 MODULE_DESCRIPTION("Input driver event char devices"); | 901 MODULE_DESCRIPTION("Input driver event char devices"); |
| 900 MODULE_LICENSE("GPL"); | 902 MODULE_LICENSE("GPL"); |
| OLD | NEW |