media: v4l2-mc: fix a warning message
authorAntti Keränen <detegr@rbx.email>
Mon, 15 Mar 2021 13:58:54 +0000 (14:58 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 12:06:39 +0000 (13:06 +0100)
The message erroneously told that the pad wasn't found from a tuner
when in reality it wasn't found from a decoder.

Signed-off-by: Antti Keränen <detegr@rbx.email>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-mc.c

index cba3d8e0bc4a97d2667c79673da379b863c24709..b01474717dca923ab65aa412dc0e148bdb12d1a6 100644 (file)
@@ -246,7 +246,7 @@ int v4l2_mc_create_media_graph(struct media_device *mdev)
                        pad_sink = media_get_pad_index(decoder, true,
                                                       PAD_SIGNAL_ANALOG);
                        if (pad_sink < 0) {
-                               dev_warn(mdev->dev, "couldn't get tuner analog pad sink\n");
+                               dev_warn(mdev->dev, "couldn't get decoder analog pad sink\n");
                                return -EINVAL;
                        }
                        ret = media_create_pad_link(entity, 0, decoder,