diff options
-rw-r--r-- | sound/soc/fsl/eukrea-tlv320.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/imx-ssi.c | 23 | ||||
-rw-r--r-- | sound/soc/fsl/imx-ssi.h | 2 | ||||
-rw-r--r-- | sound/soc/fsl/phycore-ac97.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/wm1133-ev1.c | 2 |
5 files changed, 9 insertions, 22 deletions
diff --git a/sound/soc/fsl/eukrea-tlv320.c b/sound/soc/fsl/eukrea-tlv320.c index 75ffdf0e2aad..9a4a0ca2c1de 100644 --- a/sound/soc/fsl/eukrea-tlv320.c +++ b/sound/soc/fsl/eukrea-tlv320.c | |||
@@ -80,7 +80,7 @@ static struct snd_soc_dai_link eukrea_tlv320_dai = { | |||
80 | .name = "tlv320aic23", | 80 | .name = "tlv320aic23", |
81 | .stream_name = "TLV320AIC23", | 81 | .stream_name = "TLV320AIC23", |
82 | .codec_dai_name = "tlv320aic23-hifi", | 82 | .codec_dai_name = "tlv320aic23-hifi", |
83 | .platform_name = "imx-fiq-pcm-audio.0", | 83 | .platform_name = "imx-ssi.0", |
84 | .codec_name = "tlv320aic23-codec.0-001a", | 84 | .codec_name = "tlv320aic23-codec.0-001a", |
85 | .cpu_dai_name = "imx-ssi.0", | 85 | .cpu_dai_name = "imx-ssi.0", |
86 | .ops = &eukrea_tlv320_snd_ops, | 86 | .ops = &eukrea_tlv320_snd_ops, |
diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c index b5a2b040816c..1b2e750151ae 100644 --- a/sound/soc/fsl/imx-ssi.c +++ b/sound/soc/fsl/imx-ssi.c | |||
@@ -595,18 +595,9 @@ static int imx_ssi_probe(struct platform_device *pdev) | |||
595 | goto failed_register; | 595 | goto failed_register; |
596 | } | 596 | } |
597 | 597 | ||
598 | ssi->soc_platform_pdev_fiq = platform_device_alloc("imx-fiq-pcm-audio", pdev->id); | 598 | ret = imx_pcm_fiq_init(pdev); |
599 | if (!ssi->soc_platform_pdev_fiq) { | 599 | if (ret) |
600 | ret = -ENOMEM; | 600 | goto failed_pcm_fiq; |
601 | goto failed_pdev_fiq_alloc; | ||
602 | } | ||
603 | |||
604 | platform_set_drvdata(ssi->soc_platform_pdev_fiq, ssi); | ||
605 | ret = platform_device_add(ssi->soc_platform_pdev_fiq); | ||
606 | if (ret) { | ||
607 | dev_err(&pdev->dev, "failed to add platform device\n"); | ||
608 | goto failed_pdev_fiq_add; | ||
609 | } | ||
610 | 601 | ||
611 | ret = imx_pcm_dma_init(pdev); | 602 | ret = imx_pcm_dma_init(pdev); |
612 | if (ret) | 603 | if (ret) |
@@ -615,10 +606,8 @@ static int imx_ssi_probe(struct platform_device *pdev) | |||
615 | return 0; | 606 | return 0; |
616 | 607 | ||
617 | failed_pcm_dma: | 608 | failed_pcm_dma: |
618 | platform_device_del(ssi->soc_platform_pdev_fiq); | 609 | imx_pcm_fiq_exit(pdev); |
619 | failed_pdev_fiq_add: | 610 | failed_pcm_fiq: |
620 | platform_device_put(ssi->soc_platform_pdev_fiq); | ||
621 | failed_pdev_fiq_alloc: | ||
622 | snd_soc_unregister_component(&pdev->dev); | 611 | snd_soc_unregister_component(&pdev->dev); |
623 | failed_register: | 612 | failed_register: |
624 | release_mem_region(res->start, resource_size(res)); | 613 | release_mem_region(res->start, resource_size(res)); |
@@ -635,7 +624,7 @@ static int imx_ssi_remove(struct platform_device *pdev) | |||
635 | struct imx_ssi *ssi = platform_get_drvdata(pdev); | 624 | struct imx_ssi *ssi = platform_get_drvdata(pdev); |
636 | 625 | ||
637 | imx_pcm_dma_exit(pdev); | 626 | imx_pcm_dma_exit(pdev); |
638 | platform_device_unregister(ssi->soc_platform_pdev_fiq); | 627 | imx_pcm_fiq_exit(pdev); |
639 | 628 | ||
640 | snd_soc_unregister_component(&pdev->dev); | 629 | snd_soc_unregister_component(&pdev->dev); |
641 | 630 | ||
diff --git a/sound/soc/fsl/imx-ssi.h b/sound/soc/fsl/imx-ssi.h index b052fad8f6c7..d5003cefca8d 100644 --- a/sound/soc/fsl/imx-ssi.h +++ b/sound/soc/fsl/imx-ssi.h | |||
@@ -211,8 +211,6 @@ struct imx_ssi { | |||
211 | struct imx_dma_data filter_data_rx; | 211 | struct imx_dma_data filter_data_rx; |
212 | 212 | ||
213 | int enabled; | 213 | int enabled; |
214 | |||
215 | struct platform_device *soc_platform_pdev_fiq; | ||
216 | }; | 214 | }; |
217 | 215 | ||
218 | #endif /* _IMX_SSI_H */ | 216 | #endif /* _IMX_SSI_H */ |
diff --git a/sound/soc/fsl/phycore-ac97.c b/sound/soc/fsl/phycore-ac97.c index f8da6dd115ed..ae403c29688f 100644 --- a/sound/soc/fsl/phycore-ac97.c +++ b/sound/soc/fsl/phycore-ac97.c | |||
@@ -33,7 +33,7 @@ static struct snd_soc_dai_link imx_phycore_dai_ac97[] = { | |||
33 | .codec_dai_name = "wm9712-hifi", | 33 | .codec_dai_name = "wm9712-hifi", |
34 | .codec_name = "wm9712-codec", | 34 | .codec_name = "wm9712-codec", |
35 | .cpu_dai_name = "imx-ssi.0", | 35 | .cpu_dai_name = "imx-ssi.0", |
36 | .platform_name = "imx-fiq-pcm-audio.0", | 36 | .platform_name = "imx-ssi.0", |
37 | .ops = &imx_phycore_hifi_ops, | 37 | .ops = &imx_phycore_hifi_ops, |
38 | }, | 38 | }, |
39 | }; | 39 | }; |
diff --git a/sound/soc/fsl/wm1133-ev1.c b/sound/soc/fsl/wm1133-ev1.c index fe54a69073e5..fce63252bdbb 100644 --- a/sound/soc/fsl/wm1133-ev1.c +++ b/sound/soc/fsl/wm1133-ev1.c | |||
@@ -245,7 +245,7 @@ static struct snd_soc_dai_link wm1133_ev1_dai = { | |||
245 | .stream_name = "Audio", | 245 | .stream_name = "Audio", |
246 | .cpu_dai_name = "imx-ssi.0", | 246 | .cpu_dai_name = "imx-ssi.0", |
247 | .codec_dai_name = "wm8350-hifi", | 247 | .codec_dai_name = "wm8350-hifi", |
248 | .platform_name = "imx-fiq-pcm-audio.0", | 248 | .platform_name = "imx-ssi.0", |
249 | .codec_name = "wm8350-codec.0-0x1a", | 249 | .codec_name = "wm8350-codec.0-0x1a", |
250 | .init = wm1133_ev1_init, | 250 | .init = wm1133_ev1_init, |
251 | .ops = &wm1133_ev1_ops, | 251 | .ops = &wm1133_ev1_ops, |