aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 00:15:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-26 15:25:08 -0400
commit5e483075a1f9862a65af648d1d939499969c7b5d (patch)
treea510b8051e026ccf3fdbcff437cbe724700c96bf
parentce7b0f46bbf4bff8daab2dd3d878b9e72a623d09 (diff)
[PATCH] devfs: Remove the videodevice devfs_name field as it's no longer needed
Also fixes all drivers that set this field. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/media/video/videodev.c3
-rw-r--r--include/media/v4l2-dev.h1
2 files changed, 1 insertions, 3 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);
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index a1b473190e65..62dae1a8c441 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -314,7 +314,6 @@ void *priv;
314 /* for videodev.c intenal usage -- please don't touch */ 314 /* for videodev.c intenal usage -- please don't touch */
315 int users; /* video_exclusive_{open|close} ... */ 315 int users; /* video_exclusive_{open|close} ... */
316 struct mutex lock; /* ... helper function uses these */ 316 struct mutex lock; /* ... helper function uses these */
317 char devfs_name[64]; /* devfs */
318 struct class_device class_dev; /* sysfs */ 317 struct class_device class_dev; /* sysfs */
319}; 318};
320 319