diff options
-rw-r--r-- | drivers/input/input.c | 3 | ||||
-rw-r--r-- | include/linux/input.h | 4 |
2 files changed, 0 insertions, 7 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; |
diff --git a/include/linux/input.h b/include/linux/input.h index 9a963fe97300..48937ffa977a 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -1018,7 +1018,6 @@ struct ff_effect { | |||
1018 | * @going_away: marks devices that are in a middle of unregistering and | 1018 | * @going_away: marks devices that are in a middle of unregistering and |
1019 | * causes input_open_device*() fail with -ENODEV. | 1019 | * causes input_open_device*() fail with -ENODEV. |
1020 | * @dev: driver model's view of this device | 1020 | * @dev: driver model's view of this device |
1021 | * @cdev: union for struct device pointer | ||
1022 | * @h_list: list of input handles associated with the device. When | 1021 | * @h_list: list of input handles associated with the device. When |
1023 | * accessing the list dev->mutex must be held | 1022 | * accessing the list dev->mutex must be held |
1024 | * @node: used to place the device onto input_dev_list | 1023 | * @node: used to place the device onto input_dev_list |
@@ -1083,9 +1082,6 @@ struct input_dev { | |||
1083 | int going_away; | 1082 | int going_away; |
1084 | 1083 | ||
1085 | struct device dev; | 1084 | struct device dev; |
1086 | union { /* temporarily so while we switching to struct device */ | ||
1087 | struct device *dev; | ||
1088 | } cdev; | ||
1089 | 1085 | ||
1090 | struct list_head h_list; | 1086 | struct list_head h_list; |
1091 | struct list_head node; | 1087 | struct list_head node; |