diff options
author | Vaibhav Hiremath <hvaibhav@ti.com> | 2011-06-16 14:32:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-01 14:46:46 -0400 |
commit | 8f3a307b9afd8c2ebde46ef317df4df3813301a7 (patch) | |
tree | 38f95da0da5d76f5f356a30964dcad5968bc906d /drivers/media/video | |
parent | e8bb10b82f3d9fff79751ee392c1c499e3d68365 (diff) |
[media] OMAP_VOUT: Change hardcoded device node number to -1
With addition of media-controller framework, now we have various
device nodes (/dev/videoX) getting created, so hardcoding
minor number in video_register_device() is not recommended.
So let V4L2 framework choose free minor number for the device.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/omap/omap_vout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c index 4ada9be1d430..eb16607358d0 100644 --- a/drivers/media/video/omap/omap_vout.c +++ b/drivers/media/video/omap/omap_vout.c | |||
@@ -2391,7 +2391,7 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev) | |||
2391 | /* Register the Video device with V4L2 | 2391 | /* Register the Video device with V4L2 |
2392 | */ | 2392 | */ |
2393 | vfd = vout->vfd; | 2393 | vfd = vout->vfd; |
2394 | if (video_register_device(vfd, VFL_TYPE_GRABBER, k + 1) < 0) { | 2394 | if (video_register_device(vfd, VFL_TYPE_GRABBER, -1) < 0) { |
2395 | dev_err(&pdev->dev, ": Could not register " | 2395 | dev_err(&pdev->dev, ": Could not register " |
2396 | "Video for Linux device\n"); | 2396 | "Video for Linux device\n"); |
2397 | vfd->minor = -1; | 2397 | vfd->minor = -1; |