diff options
Diffstat (limited to 'drivers/input/mousedev.c')
-rw-r--r-- | drivers/input/mousedev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index 8137e50ded87..4ab8b28bace8 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
@@ -879,8 +879,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev, | |||
879 | mousedev->handle.handler = handler; | 879 | mousedev->handle.handler = handler; |
880 | mousedev->handle.private = mousedev; | 880 | mousedev->handle.private = mousedev; |
881 | 881 | ||
882 | strlcpy(mousedev->dev.bus_id, mousedev->name, | 882 | dev_set_name(&mousedev->dev, mousedev->name); |
883 | sizeof(mousedev->dev.bus_id)); | ||
884 | mousedev->dev.class = &input_class; | 883 | mousedev->dev.class = &input_class; |
885 | if (dev) | 884 | if (dev) |
886 | mousedev->dev.parent = &dev->dev; | 885 | mousedev->dev.parent = &dev->dev; |