media: rcar-vin: Register media device when all sub-devices bound
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 13 Aug 2020 21:06:02 +0000 (23:06 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 29 Aug 2020 06:16:58 +0000 (08:16 +0200)
commitf287e3ecb617b66f60b4e4641ee10054fffd00be
treec55339681aee9e208abdab5f9883f3c93122b817
parentf18d6a4cb0561c322e284ed404f2ec97b1092396
media: rcar-vin: Register media device when all sub-devices bound

The media device is not usable by userspace before all devices involved
in capture are present in the system. Move registering of the media
device to the async complete callback.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-core.c