aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r--drivers/input/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index 377b2007377e..c69a58fe54d8 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -820,7 +820,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev,
820 evdev->handle.handler = handler; 820 evdev->handle.handler = handler;
821 evdev->handle.private = evdev; 821 evdev->handle.private = evdev;
822 822
823 strlcpy(evdev->dev.bus_id, evdev->name, sizeof(evdev->dev.bus_id)); 823 dev_set_name(&evdev->dev, evdev->name);
824 evdev->dev.devt = MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor); 824 evdev->dev.devt = MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor);
825 evdev->dev.class = &input_class; 825 evdev->dev.class = &input_class;
826 evdev->dev.parent = &dev->dev; 826 evdev->dev.parent = &dev->dev;