From: Andrew Morton Signed-off-by: Andrew Morton --- include/media/v4l2-dev.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -puN include/media/v4l2-dev.h~git-dvb-fixup include/media/v4l2-dev.h --- a/include/media/v4l2-dev.h~git-dvb-fixup +++ a/include/media/v4l2-dev.h @@ -342,11 +342,14 @@ extern int video_usercopy(struct inode * extern struct video_device* video_devdata(struct file*); #define to_video_device(cd) container_of(cd, struct video_device, class_dev) -static inline int __must_check +static inline int video_device_create_file(struct video_device *vfd, struct class_device_attribute *attr) { - return class_device_create_file(&vfd->class_dev, attr); + int ret = class_device_create_file(&vfd->class_dev, attr); + if (ret < 0) + printk(KERN_WARNING "%s error: %d\n", __FUNCTION__, ret); + return ret; } static inline void video_device_remove_file(struct video_device *vfd, _