diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-07-18 15:28:36 -0300 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-07-18 15:28:36 -0300 |
commit | 0139018d1bfbb5b35e768a0b1b721a538ec56e1d (patch) | |
tree | a687e89ea84c76a61c69c96c41bd63f753a6344b /linux/drivers/media/video/videodev.c | |
parent | 2077ee796fefb8f80d43b5318e6f1b54d235a3ea (diff) | |
download | mediapointer-dvb-s2-0139018d1bfbb5b35e768a0b1b721a538ec56e1d.tar.gz mediapointer-dvb-s2-0139018d1bfbb5b35e768a0b1b721a538ec56e1d.tar.bz2 |
videodev: replace class_device_create_file with video_device_create_file
From: Michael Krufky <mkrufky@linuxtv.org>
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 <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/videodev.c')
-rw-r--r-- | linux/drivers/media/video/videodev.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 */ |