diff options
author | Joe Perches <joe@perches.com> | 2010-07-12 16:50:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-07-13 07:33:59 -0400 |
commit | 8ff23610a6c2ec8abaab6ae14d9ed8f59c1f944c (patch) | |
tree | 1c4d1e0fb468d72a014b72c7265f7d6ea28781db /sound/soc/blackfin | |
parent | 4d53952a396d7fcde295b6eedee1f588dfb8464c (diff) |
ASoC: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/blackfin')
-rw-r--r-- | sound/soc/blackfin/bf5xx-ac97.c | 6 | ||||
-rw-r--r-- | sound/soc/blackfin/bf5xx-tdm.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/sound/soc/blackfin/bf5xx-ac97.c b/sound/soc/blackfin/bf5xx-ac97.c index 523b7fc33f4e..c0eba5109980 100644 --- a/sound/soc/blackfin/bf5xx-ac97.c +++ b/sound/soc/blackfin/bf5xx-ac97.c | |||
@@ -255,8 +255,7 @@ EXPORT_SYMBOL_GPL(soc_ac97_ops); | |||
255 | #ifdef CONFIG_PM | 255 | #ifdef CONFIG_PM |
256 | static int bf5xx_ac97_suspend(struct snd_soc_dai *dai) | 256 | static int bf5xx_ac97_suspend(struct snd_soc_dai *dai) |
257 | { | 257 | { |
258 | struct sport_device *sport = | 258 | struct sport_device *sport = dai->private_data; |
259 | (struct sport_device *)dai->private_data; | ||
260 | 259 | ||
261 | pr_debug("%s : sport %d\n", __func__, dai->id); | 260 | pr_debug("%s : sport %d\n", __func__, dai->id); |
262 | if (!dai->active) | 261 | if (!dai->active) |
@@ -271,8 +270,7 @@ static int bf5xx_ac97_suspend(struct snd_soc_dai *dai) | |||
271 | static int bf5xx_ac97_resume(struct snd_soc_dai *dai) | 270 | static int bf5xx_ac97_resume(struct snd_soc_dai *dai) |
272 | { | 271 | { |
273 | int ret; | 272 | int ret; |
274 | struct sport_device *sport = | 273 | struct sport_device *sport = dai->private_data; |
275 | (struct sport_device *)dai->private_data; | ||
276 | 274 | ||
277 | pr_debug("%s : sport %d\n", __func__, dai->id); | 275 | pr_debug("%s : sport %d\n", __func__, dai->id); |
278 | if (!dai->active) | 276 | if (!dai->active) |
diff --git a/sound/soc/blackfin/bf5xx-tdm.c b/sound/soc/blackfin/bf5xx-tdm.c index 4b360124083e..24c14269f4bc 100644 --- a/sound/soc/blackfin/bf5xx-tdm.c +++ b/sound/soc/blackfin/bf5xx-tdm.c | |||
@@ -210,8 +210,7 @@ static int bf5xx_tdm_set_channel_map(struct snd_soc_dai *dai, | |||
210 | #ifdef CONFIG_PM | 210 | #ifdef CONFIG_PM |
211 | static int bf5xx_tdm_suspend(struct snd_soc_dai *dai) | 211 | static int bf5xx_tdm_suspend(struct snd_soc_dai *dai) |
212 | { | 212 | { |
213 | struct sport_device *sport = | 213 | struct sport_device *sport = dai->private_data; |
214 | (struct sport_device *)dai->private_data; | ||
215 | 214 | ||
216 | if (!dai->active) | 215 | if (!dai->active) |
217 | return 0; | 216 | return 0; |
@@ -225,8 +224,7 @@ static int bf5xx_tdm_suspend(struct snd_soc_dai *dai) | |||
225 | static int bf5xx_tdm_resume(struct snd_soc_dai *dai) | 224 | static int bf5xx_tdm_resume(struct snd_soc_dai *dai) |
226 | { | 225 | { |
227 | int ret; | 226 | int ret; |
228 | struct sport_device *sport = | 227 | struct sport_device *sport = dai->private_data; |
229 | (struct sport_device *)dai->private_data; | ||
230 | 228 | ||
231 | if (!dai->active) | 229 | if (!dai->active) |
232 | return 0; | 230 | return 0; |