diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-04-24 23:18:48 -0400 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:00:40 -0400 |
commit | 0f27460e9903677c81dda2cb1b662fb3b4e6564c (patch) | |
tree | b1d12444dea30706a0cd90f0b9c92e8d8a046ff3 | |
parent | 18fc1f9e924571a956d88059376602aed29d7658 (diff) |
ASoC: fsl: create function imx_pcm_fiq_exit()
Commit 88e89f5548a6e19bf837633f622764f2d1531748 upstream.
Create function imx_pcm_fiq_exit() to be paired with imx_pcm_fiq_init()
just like the pair of imx_pcm_dma_init() and imx_pcm_dma_exit().
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
-rw-r--r-- | sound/soc/fsl/imx-pcm-fiq.c | 5 | ||||
-rw-r--r-- | sound/soc/fsl/imx-pcm.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/imx-pcm.h | 5 |
3 files changed, 11 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index dcfd0fae0b35..a9915814eba9 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c | |||
@@ -319,3 +319,8 @@ failed_register: | |||
319 | 319 | ||
320 | return ret; | 320 | return ret; |
321 | } | 321 | } |
322 | |||
323 | void imx_pcm_fiq_exit(struct platform_device *pdev) | ||
324 | { | ||
325 | snd_soc_unregister_platform(&pdev->dev); | ||
326 | } | ||
diff --git a/sound/soc/fsl/imx-pcm.c b/sound/soc/fsl/imx-pcm.c index c49896442d8e..16a956bcc52b 100644 --- a/sound/soc/fsl/imx-pcm.c +++ b/sound/soc/fsl/imx-pcm.c | |||
@@ -115,7 +115,7 @@ static int imx_pcm_probe(struct platform_device *pdev) | |||
115 | static int imx_pcm_remove(struct platform_device *pdev) | 115 | static int imx_pcm_remove(struct platform_device *pdev) |
116 | { | 116 | { |
117 | if (strcmp(pdev->id_entry->name, "imx-fiq-pcm-audio") == 0) | 117 | if (strcmp(pdev->id_entry->name, "imx-fiq-pcm-audio") == 0) |
118 | snd_soc_unregister_platform(&pdev->dev); | 118 | imx_pcm_fiq_exit(pdev); |
119 | else | 119 | else |
120 | imx_pcm_dma_exit(pdev); | 120 | imx_pcm_dma_exit(pdev); |
121 | 121 | ||
diff --git a/sound/soc/fsl/imx-pcm.h b/sound/soc/fsl/imx-pcm.h index b7fa0d75c687..073bf389c02e 100644 --- a/sound/soc/fsl/imx-pcm.h +++ b/sound/soc/fsl/imx-pcm.h | |||
@@ -53,11 +53,16 @@ static inline void imx_pcm_dma_exit(struct platform_device *pdev) | |||
53 | 53 | ||
54 | #ifdef CONFIG_SND_SOC_IMX_PCM_FIQ | 54 | #ifdef CONFIG_SND_SOC_IMX_PCM_FIQ |
55 | int imx_pcm_fiq_init(struct platform_device *pdev); | 55 | int imx_pcm_fiq_init(struct platform_device *pdev); |
56 | void imx_pcm_fiq_exit(struct platform_device *pdev); | ||
56 | #else | 57 | #else |
57 | static inline int imx_pcm_fiq_init(struct platform_device *pdev) | 58 | static inline int imx_pcm_fiq_init(struct platform_device *pdev) |
58 | { | 59 | { |
59 | return -ENODEV; | 60 | return -ENODEV; |
60 | } | 61 | } |
62 | |||
63 | static inline void imx_pcm_fiq_exit(struct platform_device *pdev) | ||
64 | { | ||
65 | } | ||
61 | #endif | 66 | #endif |
62 | 67 | ||
63 | #endif /* _IMX_PCM_H */ | 68 | #endif /* _IMX_PCM_H */ |