diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-07-18 15:26:35 -0300 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-07-18 15:26:35 -0300 |
commit | 0f42d9b3869315f6da11e7042fa930a2a97d01b5 (patch) | |
tree | 73ac414ec0e93d20259cccf4919c7060c1d2cdc1 /linux | |
parent | b03df0f2b745285c1909f1f4efd6e177c7837c5a (diff) | |
download | mediapointer-dvb-s2-0f42d9b3869315f6da11e7042fa930a2a97d01b5.tar.gz mediapointer-dvb-s2-0f42d9b3869315f6da11e7042fa930a2a97d01b5.tar.bz2 |
video_device_create_file should return the value of class_device_create_file
From: Michael Krufky <mkrufky@linuxtv.org>
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 <mkrufky@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/include/media/v4l2-dev.h | 4 |
1 files changed, 2 insertions, 2 deletions
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, |