diff options
author | Teresa Remmet <t.remmet@phytec.de> | 2016-08-15 10:16:28 +0200 |
---|---|---|
committer | Jyri Sarha <jsarha@ti.com> | 2016-09-01 22:28:57 +0300 |
commit | a3479c4fa0f149d9f3f6f88c173c4f4cd07a1714 (patch) | |
tree | 7640793db4f8872a914b7bb2799aa21255da2a07 /drivers/gpu/drm/tilcdc | |
parent | 2b2fd56d7e92f134ecaae5c89e20f64dd0f95aa2 (diff) | |
download | op-kernel-dev-a3479c4fa0f149d9f3f6f88c173c4f4cd07a1714.zip op-kernel-dev-a3479c4fa0f149d9f3f6f88c173c4f4cd07a1714.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/tilcdc')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_external.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_external.c b/drivers/gpu/drm/tilcdc/tilcdc_external.c index ad3db4d..849b23e 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_external.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_external.c @@ -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; } |