diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-01-21 01:08:24 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-01-21 01:11:08 -0500 |
commit | 0c1efd365306c9b04df5abdd41e9b4dc721e84fb (patch) | |
tree | 8afc12816fd08cb38e6651eb18c1645c1ae13278 /drivers/input/input.c | |
parent | 3eaeb9c951d060fff71bcdc327eb48ee52ed1c0c (diff) |
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>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index e1729e1dd9b2..6ee8af8963f9 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -1395,9 +1395,6 @@ int input_register_device(struct input_dev *dev) | |||
1395 | snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id), | 1395 | snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id), |
1396 | "input%ld", (unsigned long) atomic_inc_return(&input_no) - 1); | 1396 | "input%ld", (unsigned long) atomic_inc_return(&input_no) - 1); |
1397 | 1397 | ||
1398 | if (dev->cdev.dev) | ||
1399 | dev->dev.parent = dev->cdev.dev; | ||
1400 | |||
1401 | error = device_add(&dev->dev); | 1398 | error = device_add(&dev->dev); |
1402 | if (error) | 1399 | if (error) |
1403 | return error; | 1400 | return error; |