ASoC: rsnd: remove endpoint bidirectional check
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 6 Nov 2018 05:18:58 +0000 (05:18 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 6 Nov 2018 17:38:33 +0000 (17:38 +0000)
DTC commit df536831d02c ("checks: add graph binding checks")
is checking endpoint bidirectional, and it is upstreamed to linux by
commit 50aafd60898a ("scripts/dtc: Update to upstream version
v1.4.6-21-g84e414b0b5bc").
Let's remove own bidirectional check

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ssi.c

index a032819044f7610448b6720fd94fcf5c824e4c6c..10a53e2adcad3e9ec474592651822d57dd73a22f 100644 (file)
@@ -1095,11 +1095,7 @@ void rsnd_ssi_parse_hdmi_connection(struct rsnd_priv *priv,
                                    int dai_i)
 {
        struct rsnd_dai *rdai = rsnd_rdai_get(priv, dai_i);
-       struct device_node *remote_ep;
-
-       remote_ep = of_graph_get_remote_endpoint(endpoint);
-       if (!remote_ep)
-               return;
+       struct device_node *remote_ep = of_graph_get_remote_endpoint(endpoint);
 
        __rsnd_ssi_parse_hdmi_connection(priv, &rdai->playback, remote_ep);
        __rsnd_ssi_parse_hdmi_connection(priv, &rdai->capture,  remote_ep);