summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bt8xx
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-07-18 15:28:09 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-07-18 15:28:09 -0300
commit2077ee796fefb8f80d43b5318e6f1b54d235a3ea (patch)
treed723760c0cc5e35c94ff7fe8d6c2d6f6ac7330c0 /linux/drivers/media/video/bt8xx
parent0f42d9b3869315f6da11e7042fa930a2a97d01b5 (diff)
downloadmediapointer-dvb-s2-2077ee796fefb8f80d43b5318e6f1b54d235a3ea.tar.gz
mediapointer-dvb-s2-2077ee796fefb8f80d43b5318e6f1b54d235a3ea.tar.bz2
Check __must_check warning in video_device_create_file
From: Michael Krufky <mkrufky@linuxtv.org> This patch moves the check from bttv-driver.c into v4l2-dev.h, because all other callers of video_device_create_file must also be checked. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> cc: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/bt8xx')
-rw-r--r--linux/drivers/media/video/bt8xx/bttv-driver.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-driver.c b/linux/drivers/media/video/bt8xx/bttv-driver.c
index 0903a3803..a43764dea 100644
--- a/linux/drivers/media/video/bt8xx/bttv-driver.c
+++ b/linux/drivers/media/video/bt8xx/bttv-driver.c
@@ -3942,10 +3942,6 @@ static void bttv_unregister_video(struct bttv *btv)
/* register video4linux devices */
static int __devinit bttv_register_video(struct bttv *btv)
{
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17)
- int ret;
-#endif
-
if (no_overlay <= 0) {
bttv_video_template.type |= VID_TYPE_OVERLAY;
} else {
@@ -3960,17 +3956,10 @@ static int __devinit bttv_register_video(struct bttv *btv)
goto err;
printk(KERN_INFO "bttv%d: registered device video%d\n",
btv->c.nr,btv->video_dev->minor & 0x1f);
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17)
- ret = video_device_create_file(btv->video_dev, &class_device_attr_card);
- if (ret < 0)
- printk(KERN_WARNING "bttv: video_device_create_file error: "
- "%d\n", ret);
-#else
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
video_device_create_file(btv->video_dev, &class_device_attr_card);
#endif
-#endif
/* vbi */
btv->vbi_dev = vdev_init(btv, &bttv_vbi_template, "vbi");