summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videodev.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-07-19 11:43:17 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-07-19 11:43:17 -0300
commita9e9a6602d4ad20320cee50abb6568d03799e1a6 (patch)
tree99e1e30bc8bb46aef497a2c6fc74d1c50d5a772c /linux/drivers/media/video/videodev.c
parent8ca6277222be28b84f147cba6e1d5a7486142b0d (diff)
downloadmediapointer-dvb-s2-a9e9a6602d4ad20320cee50abb6568d03799e1a6.tar.gz
mediapointer-dvb-s2-a9e9a6602d4ad20320cee50abb6568d03799e1a6.tar.bz2
[PATCH] devfs: Remove the videodevice devfs_name field as it's no longer needed
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync: backport from kernel to v4l/dvb tree Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/videodev.c')
-rw-r--r--linux/drivers/media/video/videodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c
index f236bc6c7..7d0076a0f 100644
--- a/linux/drivers/media/video/videodev.c
+++ b/linux/drivers/media/video/videodev.c
@@ -1592,7 +1592,7 @@ int video_register_device(struct video_device *vfd, int type, int nr)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
vfd->class_dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor);
#endif
- strlcpy(vfd->class_dev.class_id, vfd->devfs_name + 4, BUS_ID_SIZE);
+ sprintf(vfd->class_dev.class_id, "%s%d", name_base, i - base);
ret = class_device_register(&vfd->class_dev);
if (ret) {
printk(KERN_ERR "%s: class_device_register failed\n",