mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
Input: remove cdev from input_dev structure
Cdev field was obsolete and provided only for backward compatibility since conversion of input core from class devices to regular devices. It is time to remove it. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
3eaeb9c951
commit
0c1efd3653
2 changed files with 0 additions and 7 deletions
|
@ -1395,9 +1395,6 @@ int input_register_device(struct input_dev *dev)
|
|||
snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id),
|
||||
"input%ld", (unsigned long) atomic_inc_return(&input_no) - 1);
|
||||
|
||||
if (dev->cdev.dev)
|
||||
dev->dev.parent = dev->cdev.dev;
|
||||
|
||||
error = device_add(&dev->dev);
|
||||
if (error)
|
||||
return error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue