ASoC: rsnd: ssi: add rsnd_ssi_of_node()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 20 Feb 2015 10:30:02 +0000 (10:30 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 7 Mar 2015 15:04:30 +0000 (15:04 +0000)
This patch adds rsnd_ssi_of_node() to get SSI subnode from DT.
This is prepare for new DT bindings for 1st DMAC

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 7e48d562dea87b6e5727376e4fbaa610279862ad..2133eb34ed06624d238ecad4ac45cd955b6b41c8 100644 (file)
@@ -83,6 +83,8 @@ struct rsnd_ssi {
 #define rsnd_ssi_clk_from_parent(ssi) ((ssi)->parent)
 #define rsnd_ssi_mode_flags(p) ((p)->info->flags)
 #define rsnd_ssi_dai_id(ssi) ((ssi)->info->dai_id)
+#define rsnd_ssi_of_node(priv) \
+       of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,ssi")
 
 int rsnd_ssi_use_busif(struct rsnd_mod *mod)
 {
@@ -633,7 +635,7 @@ static void rsnd_of_parse_ssi(struct platform_device *pdev,
        if (!of_data)
                return;
 
-       node = of_get_child_by_name(dev->of_node, "rcar_sound,ssi");
+       node = rsnd_ssi_of_node(priv);
        if (!node)
                return;