From 0139018d1bfbb5b35e768a0b1b721a538ec56e1d Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Tue, 18 Jul 2006 15:28:36 -0300 Subject: videodev: replace class_device_create_file with video_device_create_file From: Michael Krufky This patch replaces the call to class_device_create_file with video_device_create_file, as defined in v4l2-dev.h, so that the return value of class_device_create_file will be checked. Signed-off-by: Michael Krufky --- linux/drivers/media/video/videodev.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'linux/drivers/media') diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c index c12f88fe3..5bc4e34dc 100644 --- a/linux/drivers/media/video/videodev.c +++ b/linux/drivers/media/video/videodev.c @@ -1598,11 +1598,9 @@ int video_register_device(struct video_device *vfd, int type, int nr) #endif strlcpy(vfd->class_dev.class_id, vfd->devfs_name + 4, BUS_ID_SIZE); class_device_register(&vfd->class_dev); - class_device_create_file(&vfd->class_dev, - &class_device_attr_name); + video_device_create_file(vfd, &class_device_attr_name); #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12) - class_device_create_file(&vfd->class_dev, - &class_device_attr_dev); + video_device_create_file(vfd, &class_device_attr_dev); #endif #if 1 /* keep */ -- cgit v1.2.3