Merge remote-tracking branch 'asoc/topic/rcar' into asoc-next
[muen/linux.git] / sound / soc / sh / rcar / ssi.c
index 43c31d153ea6c343b6067983e62c3cc1f0f4d22e..fece1e5f582f35ab5e558a0b66b3b558816048d6 100644 (file)
@@ -1117,6 +1117,9 @@ int rsnd_ssi_probe(struct rsnd_priv *priv)
 
        i = 0;
        for_each_child_of_node(node, np) {
+               if (!of_device_is_available(np))
+                       goto skip;
+
                ssi = rsnd_ssi_get(priv, i);
 
                snprintf(name, RSND_SSI_NAME_SIZE, "%s.%d",
@@ -1153,7 +1156,7 @@ int rsnd_ssi_probe(struct rsnd_priv *priv)
                        of_node_put(np);
                        goto rsnd_ssi_probe_done;
                }
-
+skip:
                i++;
        }