From a9e9a6602d4ad20320cee50abb6568d03799e1a6 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 19 Jul 2006 11:43:17 -0300 Subject: [PATCH] devfs: Remove the videodevice devfs_name field as it's no longer needed From: Mauro Carvalho Chehab kernel-sync: backport from kernel to v4l/dvb tree Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/videodev.c | 2 +- linux/include/media/v4l2-dev.h | 8 -------- 2 files changed, 1 insertion(+), 9 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", diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h index 171a63f65..8c3fd8fdd 100644 --- a/linux/include/media/v4l2-dev.h +++ b/linux/include/media/v4l2-dev.h @@ -13,9 +13,6 @@ #include #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,69) -#include -#endif #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0) #include #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) @@ -341,11 +338,6 @@ void *priv; #else struct semaphore lock; /* ... helper function uses these */ #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,69) - devfs_handle_t devfs_handle; /* devfs */ -#else - char devfs_name[64]; /* devfs */ -#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) struct class_device class_dev; /* sysfs */ #endif -- cgit v1.2.3