diff options
Diffstat (limited to 'drivers/media/video/videodev.c')
-rw-r--r-- | drivers/media/video/videodev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index a802a7e0df79..b26ebaff226f 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c | |||
@@ -1570,8 +1570,7 @@ int video_register_device(struct video_device *vfd, int type, int nr) | |||
1570 | vfd->class_dev.dev = vfd->dev; | 1570 | vfd->class_dev.dev = vfd->dev; |
1571 | vfd->class_dev.class = &video_class; | 1571 | vfd->class_dev.class = &video_class; |
1572 | vfd->class_dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor); | 1572 | vfd->class_dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor); |
1573 | sprintf(vfd->devfs_name, "%s%d", name_base, i - base); | 1573 | sprintf(vfd->class_dev.class_id, "%s%d", name_base, i - base); |
1574 | strlcpy(vfd->class_dev.class_id, vfd->devfs_name, BUS_ID_SIZE); | ||
1575 | class_device_register(&vfd->class_dev); | 1574 | class_device_register(&vfd->class_dev); |
1576 | class_device_create_file(&vfd->class_dev, | 1575 | class_device_create_file(&vfd->class_dev, |
1577 | &class_device_attr_name); | 1576 | &class_device_attr_name); |