提交 a3479c4f 编写于 作者: T Teresa Remmet 提交者: Jyri Sarha

drm/tilcdc: Fix check for remote port parent

In function tilcdc_get_external_components the check for
the remote port parent is not correct. We need a '||' instead of
an '&&'.
Signed-off-by: NTeresa Remmet <t.remmet@phytec.de>
Signed-off-by: NJyri Sarha <jsarha@ti.com>
上级 2b2fd56d
...@@ -154,7 +154,7 @@ int tilcdc_get_external_components(struct device *dev, ...@@ -154,7 +154,7 @@ int tilcdc_get_external_components(struct device *dev,
while ((ep = of_graph_get_next_endpoint(dev->of_node, ep))) { while ((ep = of_graph_get_next_endpoint(dev->of_node, ep))) {
node = of_graph_get_remote_port_parent(ep); node = of_graph_get_remote_port_parent(ep);
if (!node && !of_device_is_available(node)) { if (!node || !of_device_is_available(node)) {
of_node_put(node); of_node_put(node);
continue; continue;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册