mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-15 19:25:13 +00:00
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: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Jyri Sarha <jsarha@ti.com>
This commit is contained in:
parent
2b2fd56d7e
commit
a3479c4fa0
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ int tilcdc_get_external_components(struct device *dev,
|
|||
|
||||
while ((ep = of_graph_get_next_endpoint(dev->of_node, 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);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue