summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-streams.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-09-06 13:54:00 +0300
committerHans Verkuil <hverkuil@xs4all.nl>2009-09-06 13:54:00 +0300
commit856378592a1b9be61e28092caf5e87446bae4694 (patch)
treee9d775f64e0893ce1c89aa61e59e0e3ca8a4cde8 /linux/drivers/media/video/ivtv/ivtv-streams.c
parent026fbaf9a959eb5b7770b075a604999f704640cb (diff)
downloadmediapointer-dvb-s2-856378592a1b9be61e28092caf5e87446bae4694.tar.gz
mediapointer-dvb-s2-856378592a1b9be61e28092caf5e87446bae4694.tar.bz2
v4l: warn when desired devnodenr is in use & add _no_warn function
From: Hans Verkuil <hverkuil@xs4all.nl> Warn when the desired device node number is already in use, except when the new video_register_device_no_warn function is called since in some use-cases that warning is not relevant. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-streams.c')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-streams.c b/linux/drivers/media/video/ivtv/ivtv-streams.c
index 234000352..67699e3f2 100644
--- a/linux/drivers/media/video/ivtv/ivtv-streams.c
+++ b/linux/drivers/media/video/ivtv/ivtv-streams.c
@@ -261,7 +261,7 @@ static int ivtv_reg_dev(struct ivtv *itv, int type)
video_set_drvdata(s->vdev, s);
/* Register device. First try the desired minor, then any free one. */
- if (video_register_device(s->vdev, vfl_type, num)) {
+ if (video_register_device_no_warn(s->vdev, vfl_type, num)) {
IVTV_ERR("Couldn't register v4l2 device for %s (device node number %d)\n",
s->name, num);
video_device_release(s->vdev);