aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/imx-sgtl5000.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/fsl/imx-sgtl5000.c')
-rw-r--r--sound/soc/fsl/imx-sgtl5000.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
index 199408ec4261..424347e9b2d7 100644
--- a/sound/soc/fsl/imx-sgtl5000.c
+++ b/sound/soc/fsl/imx-sgtl5000.c
@@ -56,7 +56,7 @@ static const struct snd_soc_dapm_widget imx_sgtl5000_dapm_widgets[] = {
56 SND_SOC_DAPM_SPK("Ext Spk", NULL), 56 SND_SOC_DAPM_SPK("Ext Spk", NULL),
57}; 57};
58 58
59static int __devinit imx_sgtl5000_probe(struct platform_device *pdev) 59static int imx_sgtl5000_probe(struct platform_device *pdev)
60{ 60{
61 struct device_node *np = pdev->dev.of_node; 61 struct device_node *np = pdev->dev.of_node;
62 struct device_node *ssi_np, *codec_np; 62 struct device_node *ssi_np, *codec_np;
@@ -162,6 +162,7 @@ static int __devinit imx_sgtl5000_probe(struct platform_device *pdev)
162 if (ret) 162 if (ret)
163 goto clk_fail; 163 goto clk_fail;
164 data->card.num_links = 1; 164 data->card.num_links = 1;
165 data->card.owner = THIS_MODULE;
165 data->card.dai_link = &data->dai; 166 data->card.dai_link = &data->dai;
166 data->card.dapm_widgets = imx_sgtl5000_dapm_widgets; 167 data->card.dapm_widgets = imx_sgtl5000_dapm_widgets;
167 data->card.num_dapm_widgets = ARRAY_SIZE(imx_sgtl5000_dapm_widgets); 168 data->card.num_dapm_widgets = ARRAY_SIZE(imx_sgtl5000_dapm_widgets);
@@ -184,7 +185,7 @@ fail:
184 return ret; 185 return ret;
185} 186}
186 187
187static int __devexit imx_sgtl5000_remove(struct platform_device *pdev) 188static int imx_sgtl5000_remove(struct platform_device *pdev)
188{ 189{
189 struct imx_sgtl5000_data *data = platform_get_drvdata(pdev); 190 struct imx_sgtl5000_data *data = platform_get_drvdata(pdev);
190 191
@@ -210,7 +211,7 @@ static struct platform_driver imx_sgtl5000_driver = {
210 .of_match_table = imx_sgtl5000_dt_ids, 211 .of_match_table = imx_sgtl5000_dt_ids,
211 }, 212 },
212 .probe = imx_sgtl5000_probe, 213 .probe = imx_sgtl5000_probe,
213 .remove = __devexit_p(imx_sgtl5000_remove), 214 .remove = imx_sgtl5000_remove,
214}; 215};
215module_platform_driver(imx_sgtl5000_driver); 216module_platform_driver(imx_sgtl5000_driver);
216 217