diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-02-20 05:23:39 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-07 10:04:29 -0500 |
commit | 9c706ab29f33b9562f570d1e99e21955d898dc85 (patch) | |
tree | ac55adeb7d5f38ba1587f0956b868a9c8d21c658 | |
parent | 4715219ecef50cf79d7784545bf5bb4664bb800d (diff) |
ASoC: rsnd: remove unused rsnd_dma_available()
rsnd_dma_available() is not used. Let's remove it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/core.c | 5 | ||||
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 1 | ||||
-rw-r--r-- | sound/soc/sh/rcar/src.c | 2 | ||||
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 2 |
4 files changed, 0 insertions, 10 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 1edf4dc41c70..1da94bf730d2 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -222,11 +222,6 @@ void rsnd_dma_start(struct rsnd_dma *dma) | |||
222 | dma_async_issue_pending(dma->chan); | 222 | dma_async_issue_pending(dma->chan); |
223 | } | 223 | } |
224 | 224 | ||
225 | int rsnd_dma_available(struct rsnd_dma *dma) | ||
226 | { | ||
227 | return !!dma->chan; | ||
228 | } | ||
229 | |||
230 | #define DMA_NAME_SIZE 16 | 225 | #define DMA_NAME_SIZE 16 |
231 | #define MOD_MAX 4 /* MEM/SSI/SRC/DVC */ | 226 | #define MOD_MAX 4 /* MEM/SSI/SRC/DVC */ |
232 | static int _rsnd_dma_of_name(char *dma_name, struct rsnd_mod *mod) | 227 | static int _rsnd_dma_of_name(char *dma_name, struct rsnd_mod *mod) |
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 93a1a256f37c..cb12861a1f3c 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -178,7 +178,6 @@ struct rsnd_dma { | |||
178 | 178 | ||
179 | void rsnd_dma_start(struct rsnd_dma *dma); | 179 | void rsnd_dma_start(struct rsnd_dma *dma); |
180 | void rsnd_dma_stop(struct rsnd_dma *dma); | 180 | void rsnd_dma_stop(struct rsnd_dma *dma); |
181 | int rsnd_dma_available(struct rsnd_dma *dma); | ||
182 | int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id); | 181 | int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id); |
183 | void rsnd_dma_quit(struct rsnd_priv *priv, | 182 | void rsnd_dma_quit(struct rsnd_priv *priv, |
184 | struct rsnd_dma *dma); | 183 | struct rsnd_dma *dma); |
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 7fb879871a8e..f12c8b3aa475 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c | |||
@@ -30,8 +30,6 @@ struct rsnd_src { | |||
30 | #define rsnd_src_convert_rate(p) ((p)->info->convert_rate) | 30 | #define rsnd_src_convert_rate(p) ((p)->info->convert_rate) |
31 | #define rsnd_mod_to_src(_mod) \ | 31 | #define rsnd_mod_to_src(_mod) \ |
32 | container_of((_mod), struct rsnd_src, mod) | 32 | container_of((_mod), struct rsnd_src, mod) |
33 | #define rsnd_src_dma_available(src) \ | ||
34 | rsnd_dma_available(rsnd_mod_to_dma(&(src)->mod)) | ||
35 | 33 | ||
36 | #define for_each_rsnd_src(pos, priv, i) \ | 34 | #define for_each_rsnd_src(pos, priv, i) \ |
37 | for ((i) = 0; \ | 35 | for ((i) = 0; \ |
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index 57e737c7046b..fcc77ea369b9 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c | |||
@@ -80,8 +80,6 @@ struct rsnd_ssi { | |||
80 | #define rsnd_mod_to_ssi(_mod) container_of((_mod), struct rsnd_ssi, mod) | 80 | #define rsnd_mod_to_ssi(_mod) container_of((_mod), struct rsnd_ssi, mod) |
81 | #define rsnd_dma_to_ssi(dma) rsnd_mod_to_ssi(rsnd_dma_to_mod(dma)) | 81 | #define rsnd_dma_to_ssi(dma) rsnd_mod_to_ssi(rsnd_dma_to_mod(dma)) |
82 | #define rsnd_ssi_pio_available(ssi) ((ssi)->info->irq > 0) | 82 | #define rsnd_ssi_pio_available(ssi) ((ssi)->info->irq > 0) |
83 | #define rsnd_ssi_dma_available(ssi) \ | ||
84 | rsnd_dma_available(rsnd_mod_to_dma(&(ssi)->mod)) | ||
85 | #define rsnd_ssi_clk_from_parent(ssi) ((ssi)->parent) | 83 | #define rsnd_ssi_clk_from_parent(ssi) ((ssi)->parent) |
86 | #define rsnd_ssi_mode_flags(p) ((p)->info->flags) | 84 | #define rsnd_ssi_mode_flags(p) ((p)->info->flags) |
87 | #define rsnd_ssi_dai_id(ssi) ((ssi)->info->dai_id) | 85 | #define rsnd_ssi_dai_id(ssi) ((ssi)->info->dai_id) |