提交 d12392ec 编写于 作者: S Sylwester Nawrocki 提交者: Mauro Carvalho Chehab

[media] s5p-fimc: Fail driver probing when sensor configuration is wrong

When a sensor with MIPI-CSI interface is attached through platform
data definition and the MIPI-CSI receiver is not selected in kernel
configuration s5p-fimc driver probe() will now succeed, issuing only
a warning. It was done this way to allow the driver to work even if
system configuration is not exactly right.

Instead make the driver's probe() fail if a MIPI-CSI sensor was
requested but s5p-csis module is not present.
Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 9c63afcb
...@@ -514,7 +514,7 @@ static int fimc_md_create_links(struct fimc_md *fmd) ...@@ -514,7 +514,7 @@ static int fimc_md_create_links(struct fimc_md *fmd)
if (WARN(csis == NULL, if (WARN(csis == NULL,
"MIPI-CSI interface specified " "MIPI-CSI interface specified "
"but s5p-csis module is not loaded!\n")) "but s5p-csis module is not loaded!\n"))
continue; return -EINVAL;
ret = media_entity_create_link(&sensor->entity, 0, ret = media_entity_create_link(&sensor->entity, 0,
&csis->entity, CSIS_PAD_SINK, &csis->entity, CSIS_PAD_SINK,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册