diff options
Diffstat (limited to 'sound/soc/fsl/imx-pcm.c')
-rw-r--r-- | sound/soc/fsl/imx-pcm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm.c b/sound/soc/fsl/imx-pcm.c index 0d0625bfcb65..c49896442d8e 100644 --- a/sound/soc/fsl/imx-pcm.c +++ b/sound/soc/fsl/imx-pcm.c | |||
@@ -114,7 +114,11 @@ static int imx_pcm_probe(struct platform_device *pdev) | |||
114 | 114 | ||
115 | static int imx_pcm_remove(struct platform_device *pdev) | 115 | static int imx_pcm_remove(struct platform_device *pdev) |
116 | { | 116 | { |
117 | snd_soc_unregister_platform(&pdev->dev); | 117 | if (strcmp(pdev->id_entry->name, "imx-fiq-pcm-audio") == 0) |
118 | snd_soc_unregister_platform(&pdev->dev); | ||
119 | else | ||
120 | imx_pcm_dma_exit(pdev); | ||
121 | |||
118 | return 0; | 122 | return 0; |
119 | } | 123 | } |
120 | 124 | ||