OSDN Git Service

media: vidtv: adapter->mdev was set too late
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 1 Feb 2021 08:37:40 +0000 (09:37 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 5 Feb 2021 22:52:58 +0000 (23:52 +0100)
commitc90c103c8dc42a6d236491cf9f80145a5aaf968d
treea71b128d88fa713c11387914c38c2ef7bdae5edb
parent08979f160eb96120354cbc6a815e8296f52cdc0d
media: vidtv: adapter->mdev was set too late

The media device has to be initialized and assigned to adapter->mdev
before the dvb devices are created, since that will trigger the
automatic creation of the topology.

Rework this code to achieve this.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vidtv/vidtv_bridge.c