diff options
-rw-r--r-- | sound/soc/sh/rcar/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 0bb99aa70e29..1b536d140e49 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -488,8 +488,7 @@ static int rsnd_status_update(u32 *status, | |||
488 | 488 | ||
489 | #define rsnd_dai_call(fn, io, param...) \ | 489 | #define rsnd_dai_call(fn, io, param...) \ |
490 | ({ \ | 490 | ({ \ |
491 | struct rsnd_priv *priv = rsnd_io_to_priv(io); \ | 491 | struct device *dev = rsnd_priv_to_dev(rsnd_io_to_priv(io)); \ |
492 | struct device *dev = rsnd_priv_to_dev(priv); \ | ||
493 | struct rsnd_mod *mod; \ | 492 | struct rsnd_mod *mod; \ |
494 | int is_play = rsnd_io_is_play(io); \ | 493 | int is_play = rsnd_io_is_play(io); \ |
495 | int ret = 0, i; \ | 494 | int ret = 0, i; \ |
@@ -741,6 +740,7 @@ static int rsnd_soc_dai_startup(struct snd_pcm_substream *substream, | |||
741 | struct snd_soc_dai *dai) | 740 | struct snd_soc_dai *dai) |
742 | { | 741 | { |
743 | struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); | 742 | struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); |
743 | struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); | ||
744 | struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); | 744 | struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); |
745 | int ret; | 745 | int ret; |
746 | 746 | ||
@@ -758,6 +758,7 @@ static void rsnd_soc_dai_shutdown(struct snd_pcm_substream *substream, | |||
758 | struct snd_soc_dai *dai) | 758 | struct snd_soc_dai *dai) |
759 | { | 759 | { |
760 | struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); | 760 | struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); |
761 | struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); | ||
761 | struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); | 762 | struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); |
762 | 763 | ||
763 | /* | 764 | /* |