From 0f42d9b3869315f6da11e7042fa930a2a97d01b5 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Tue, 18 Jul 2006 15:26:35 -0300 Subject: video_device_create_file should return the value of class_device_create_file From: Michael Krufky video_device_create_file was declared as a void, but instead should return the int value of class_device_create_file Signed-off-by: Michael Krufky --- linux/include/media/v4l2-dev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/include/media') diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h index 39f4b7c69..b3b196b88 100644 --- a/linux/include/media/v4l2-dev.h +++ b/linux/include/media/v4l2-dev.h @@ -376,11 +376,11 @@ extern struct video_device* video_devdata(struct file*); #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0) #define to_video_device(cd) container_of(cd, struct video_device, class_dev) -static inline void +static inline int video_device_create_file(struct video_device *vfd, struct class_device_attribute *attr) { - class_device_create_file(&vfd->class_dev, attr); + return class_device_create_file(&vfd->class_dev, attr); } static inline void video_device_remove_file(struct video_device *vfd, -- cgit v1.2.3