OSDN Git Service

media: tvp5150: initialize subdev before parsing device tree
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 12 Mar 2020 10:31:49 +0000 (11:31 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 12 Mar 2020 15:38:51 +0000 (16:38 +0100)
commit96ca7c412a2cef7e6407836152f62a539a709470
tree82ddf7955a8ac95a719cdca664bc966d012a485a
parent46fe6e7dcededcf4aba88163fee80f4f7df23deb
media: tvp5150: initialize subdev before parsing device tree

There are several debug prints in the tvp5150_parse_dt() function, which
do not print the prefix, because the v4l2_subdev is not initialized, yet.

Initialize the v4l2_subdev before parsing the device tree to fix the
debug messages.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/tvp5150.c