]> git.baikalelectronics.ru Git - kernel.git/commit
media: rockchip/vpu: Do not request id 0 for our video device
authorJonas Karlman <jonas@kwiboo.se>
Thu, 25 Apr 2019 07:12:27 +0000 (03:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 15 May 2019 09:37:50 +0000 (05:37 -0400)
commitd0c8d789b89e70c4f3bdb48db2b2f7aca697c05e
treed3156ac38f7c8c1595875250ddf2ffee5e196f1f
parent28bea3e7d60eb491fdf6f9a3a8403a1a293124f8
media: rockchip/vpu: Do not request id 0 for our video device

Pass -1 to video_register_device() to let the core assign the first
free id instead of trying to get id 0.
In practice it doesn't make a difference since video_register_device()
is not strict about id requests and will anyway pick the first free id
starting at the id passed in argument, and passing -1 has the same
effect as passing 0. But let's comply with the API doc and pass -1
here.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c