Skip to content

Commit

Permalink
ASoC: fsl: remove __dev* attributes
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option.  As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.

Signed-off-by: Bill Pemberton <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
wfp5p authored and broonie committed Dec 9, 2012
1 parent fdca21a commit a0a3d51
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions sound/soc/fsl/eukrea-tlv320.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static struct snd_soc_card eukrea_tlv320 = {
.num_links = 1,
};

static int __devinit eukrea_tlv320_probe(struct platform_device *pdev)
static int eukrea_tlv320_probe(struct platform_device *pdev)
{
int ret;
int int_port = 0, ext_port;
Expand Down Expand Up @@ -142,7 +142,7 @@ static int __devinit eukrea_tlv320_probe(struct platform_device *pdev)
return ret;
}

static int __devexit eukrea_tlv320_remove(struct platform_device *pdev)
static int eukrea_tlv320_remove(struct platform_device *pdev)
{
snd_soc_unregister_card(&eukrea_tlv320);

Expand All @@ -155,7 +155,7 @@ static struct platform_driver eukrea_tlv320_driver = {
.owner = THIS_MODULE,
},
.probe = eukrea_tlv320_probe,
.remove = __devexit_p(eukrea_tlv320_remove),};
.remove = eukrea_tlv320_remove,};

module_platform_driver(eukrea_tlv320_driver);

Expand Down
6 changes: 3 additions & 3 deletions sound/soc/fsl/fsl_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ static struct snd_pcm_ops fsl_dma_ops = {
.pointer = fsl_dma_pointer,
};

static int __devinit fsl_soc_dma_probe(struct platform_device *pdev)
static int fsl_soc_dma_probe(struct platform_device *pdev)
{
struct dma_object *dma;
struct device_node *np = pdev->dev.of_node;
Expand Down Expand Up @@ -958,7 +958,7 @@ static int __devinit fsl_soc_dma_probe(struct platform_device *pdev)
return 0;
}

static int __devexit fsl_soc_dma_remove(struct platform_device *pdev)
static int fsl_soc_dma_remove(struct platform_device *pdev)
{
struct dma_object *dma = dev_get_drvdata(&pdev->dev);

Expand All @@ -983,7 +983,7 @@ static struct platform_driver fsl_soc_dma_driver = {
.of_match_table = fsl_soc_dma_ids,
},
.probe = fsl_soc_dma_probe,
.remove = __devexit_p(fsl_soc_dma_remove),
.remove = fsl_soc_dma_remove,
};

module_platform_driver(fsl_soc_dma_driver);
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/fsl/fsl_ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ static void make_lowercase(char *s)
}
}

static int __devinit fsl_ssi_probe(struct platform_device *pdev)
static int fsl_ssi_probe(struct platform_device *pdev)
{
struct fsl_ssi_private *ssi_private;
int ret = 0;
Expand Down
8 changes: 4 additions & 4 deletions sound/soc/fsl/imx-audmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static void __init audmux_debugfs_init(void)
}
}

static void __devexit audmux_debugfs_remove(void)
static void audmux_debugfs_remove(void)
{
debugfs_remove_recursive(audmux_debugfs_root);
}
Expand Down Expand Up @@ -244,7 +244,7 @@ int imx_audmux_v2_configure_port(unsigned int port, unsigned int ptcr,
}
EXPORT_SYMBOL_GPL(imx_audmux_v2_configure_port);

static int __devinit imx_audmux_probe(struct platform_device *pdev)
static int imx_audmux_probe(struct platform_device *pdev)
{
struct resource *res;
struct pinctrl *pinctrl;
Expand Down Expand Up @@ -278,7 +278,7 @@ static int __devinit imx_audmux_probe(struct platform_device *pdev)
return 0;
}

static int __devexit imx_audmux_remove(struct platform_device *pdev)
static int imx_audmux_remove(struct platform_device *pdev)
{
if (audmux_type == IMX31_AUDMUX)
audmux_debugfs_remove();
Expand All @@ -289,7 +289,7 @@ static int __devexit imx_audmux_remove(struct platform_device *pdev)

static struct platform_driver imx_audmux_driver = {
.probe = imx_audmux_probe,
.remove = __devexit_p(imx_audmux_remove),
.remove = imx_audmux_remove,
.id_table = imx_audmux_ids,
.driver = {
.name = DRIVER_NAME,
Expand Down
6 changes: 3 additions & 3 deletions sound/soc/fsl/imx-mc13783.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static struct snd_soc_card imx_mc13783 = {
.num_dapm_routes = ARRAY_SIZE(imx_mc13783_routes),
};

static int __devinit imx_mc13783_probe(struct platform_device *pdev)
static int imx_mc13783_probe(struct platform_device *pdev)
{
int ret;

Expand Down Expand Up @@ -148,7 +148,7 @@ static int __devinit imx_mc13783_probe(struct platform_device *pdev)
return ret;
}

static int __devexit imx_mc13783_remove(struct platform_device *pdev)
static int imx_mc13783_remove(struct platform_device *pdev)
{
snd_soc_unregister_card(&imx_mc13783);

Expand All @@ -161,7 +161,7 @@ static struct platform_driver imx_mc13783_audio_driver = {
.owner = THIS_MODULE,
},
.probe = imx_mc13783_probe,
.remove = __devexit_p(imx_mc13783_remove)
.remove = imx_mc13783_remove
};

module_platform_driver(imx_mc13783_audio_driver);
Expand Down
6 changes: 3 additions & 3 deletions sound/soc/fsl/imx-pcm-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ static struct snd_soc_platform_driver imx_soc_platform_mx2 = {
.pcm_free = imx_pcm_free,
};

static int __devinit imx_soc_platform_probe(struct platform_device *pdev)
static int imx_soc_platform_probe(struct platform_device *pdev)
{
return snd_soc_register_platform(&pdev->dev, &imx_soc_platform_mx2);
}

static int __devexit imx_soc_platform_remove(struct platform_device *pdev)
static int imx_soc_platform_remove(struct platform_device *pdev)
{
snd_soc_unregister_platform(&pdev->dev);
return 0;
Expand All @@ -171,7 +171,7 @@ static struct platform_driver imx_pcm_driver = {
.owner = THIS_MODULE,
},
.probe = imx_soc_platform_probe,
.remove = __devexit_p(imx_soc_platform_remove),
.remove = imx_soc_platform_remove,
};

module_platform_driver(imx_pcm_driver);
Expand Down
6 changes: 3 additions & 3 deletions sound/soc/fsl/imx-pcm-fiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ static struct snd_soc_platform_driver imx_soc_platform_fiq = {
.pcm_free = imx_pcm_fiq_free,
};

static int __devinit imx_soc_platform_probe(struct platform_device *pdev)
static int imx_soc_platform_probe(struct platform_device *pdev)
{
struct imx_ssi *ssi = platform_get_drvdata(pdev);
int ret;
Expand Down Expand Up @@ -316,7 +316,7 @@ static int __devinit imx_soc_platform_probe(struct platform_device *pdev)
return ret;
}

static int __devexit imx_soc_platform_remove(struct platform_device *pdev)
static int imx_soc_platform_remove(struct platform_device *pdev)
{
snd_soc_unregister_platform(&pdev->dev);
return 0;
Expand All @@ -329,7 +329,7 @@ static struct platform_driver imx_pcm_driver = {
},

.probe = imx_soc_platform_probe,
.remove = __devexit_p(imx_soc_platform_remove),
.remove = imx_soc_platform_remove,
};

module_platform_driver(imx_pcm_driver);
Expand Down
6 changes: 3 additions & 3 deletions sound/soc/fsl/imx-sgtl5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static const struct snd_soc_dapm_widget imx_sgtl5000_dapm_widgets[] = {
SND_SOC_DAPM_SPK("Ext Spk", NULL),
};

static int __devinit imx_sgtl5000_probe(struct platform_device *pdev)
static int imx_sgtl5000_probe(struct platform_device *pdev)
{
struct device_node *np = pdev->dev.of_node;
struct device_node *ssi_np, *codec_np;
Expand Down Expand Up @@ -185,7 +185,7 @@ static int __devinit imx_sgtl5000_probe(struct platform_device *pdev)
return ret;
}

static int __devexit imx_sgtl5000_remove(struct platform_device *pdev)
static int imx_sgtl5000_remove(struct platform_device *pdev)
{
struct imx_sgtl5000_data *data = platform_get_drvdata(pdev);

Expand All @@ -211,7 +211,7 @@ static struct platform_driver imx_sgtl5000_driver = {
.of_match_table = imx_sgtl5000_dt_ids,
},
.probe = imx_sgtl5000_probe,
.remove = __devexit_p(imx_sgtl5000_remove),
.remove = imx_sgtl5000_remove,
};
module_platform_driver(imx_sgtl5000_driver);

Expand Down
4 changes: 2 additions & 2 deletions sound/soc/fsl/imx-ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ static int imx_ssi_probe(struct platform_device *pdev)
return ret;
}

static int __devexit imx_ssi_remove(struct platform_device *pdev)
static int imx_ssi_remove(struct platform_device *pdev)
{
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
struct imx_ssi *ssi = platform_get_drvdata(pdev);
Expand All @@ -660,7 +660,7 @@ static int __devexit imx_ssi_remove(struct platform_device *pdev)

static struct platform_driver imx_ssi_driver = {
.probe = imx_ssi_probe,
.remove = __devexit_p(imx_ssi_remove),
.remove = imx_ssi_remove,

.driver = {
.name = "imx-ssi",
Expand Down
8 changes: 4 additions & 4 deletions sound/soc/fsl/mpc5200_psc_ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static struct snd_soc_dai_driver psc_ac97_dai[] = {
* - Probe/remove operations
* - OF device match table
*/
static int __devinit psc_ac97_of_probe(struct platform_device *op)
static int psc_ac97_of_probe(struct platform_device *op)
{
int rc;
struct snd_ac97 ac97;
Expand Down Expand Up @@ -310,15 +310,15 @@ static int __devinit psc_ac97_of_probe(struct platform_device *op)
return 0;
}

static int __devexit psc_ac97_of_remove(struct platform_device *op)
static int psc_ac97_of_remove(struct platform_device *op)
{
mpc5200_audio_dma_destroy(op);
snd_soc_unregister_dais(&op->dev, ARRAY_SIZE(psc_ac97_dai));
return 0;
}

/* Match table for of_platform binding */
static struct of_device_id psc_ac97_match[] __devinitdata = {
static struct of_device_id psc_ac97_match[] = {
{ .compatible = "fsl,mpc5200-psc-ac97", },
{ .compatible = "fsl,mpc5200b-psc-ac97", },
{}
Expand All @@ -327,7 +327,7 @@ MODULE_DEVICE_TABLE(of, psc_ac97_match);

static struct platform_driver psc_ac97_driver = {
.probe = psc_ac97_of_probe,
.remove = __devexit_p(psc_ac97_of_remove),
.remove = psc_ac97_of_remove,
.driver = {
.name = "mpc5200-psc-ac97",
.owner = THIS_MODULE,
Expand Down
8 changes: 4 additions & 4 deletions sound/soc/fsl/mpc5200_psc_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static struct snd_soc_dai_driver psc_i2s_dai[] = {{
* - Probe/remove operations
* - OF device match table
*/
static int __devinit psc_i2s_of_probe(struct platform_device *op)
static int psc_i2s_of_probe(struct platform_device *op)
{
int rc;
struct psc_dma *psc_dma;
Expand Down Expand Up @@ -205,15 +205,15 @@ static int __devinit psc_i2s_of_probe(struct platform_device *op)

}

static int __devexit psc_i2s_of_remove(struct platform_device *op)
static int psc_i2s_of_remove(struct platform_device *op)
{
mpc5200_audio_dma_destroy(op);
snd_soc_unregister_dais(&op->dev, ARRAY_SIZE(psc_i2s_dai));
return 0;
}

/* Match table for of_platform binding */
static struct of_device_id psc_i2s_match[] __devinitdata = {
static struct of_device_id psc_i2s_match[] = {
{ .compatible = "fsl,mpc5200-psc-i2s", },
{ .compatible = "fsl,mpc5200b-psc-i2s", },
{}
Expand All @@ -222,7 +222,7 @@ MODULE_DEVICE_TABLE(of, psc_i2s_match);

static struct platform_driver psc_i2s_driver = {
.probe = psc_i2s_of_probe,
.remove = __devexit_p(psc_i2s_of_remove),
.remove = psc_i2s_of_remove,
.driver = {
.name = "mpc5200-psc-i2s",
.owner = THIS_MODULE,
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/fsl/mpc8610_hpcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
*
* This function is called when the platform device is removed.
*/
static int __devexit mpc8610_hpcd_remove(struct platform_device *pdev)
static int mpc8610_hpcd_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct mpc8610_hpcd_data *machine_data =
Expand All @@ -382,7 +382,7 @@ static int __devexit mpc8610_hpcd_remove(struct platform_device *pdev)

static struct platform_driver mpc8610_hpcd_driver = {
.probe = mpc8610_hpcd_probe,
.remove = __devexit_p(mpc8610_hpcd_remove),
.remove = mpc8610_hpcd_remove,
.driver = {
/* The name must match 'compatible' property in the device tree,
* in lowercase letters.
Expand Down
6 changes: 3 additions & 3 deletions sound/soc/fsl/mx27vis-aic32x4.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static struct snd_soc_card mx27vis_aic32x4 = {
.num_dapm_routes = ARRAY_SIZE(aic32x4_dapm_routes),
};

static int __devinit mx27vis_aic32x4_probe(struct platform_device *pdev)
static int mx27vis_aic32x4_probe(struct platform_device *pdev)
{
struct snd_mx27vis_platform_data *pdata = pdev->dev.platform_data;
int ret;
Expand Down Expand Up @@ -219,7 +219,7 @@ static int __devinit mx27vis_aic32x4_probe(struct platform_device *pdev)
return ret;
}

static int __devexit mx27vis_aic32x4_remove(struct platform_device *pdev)
static int mx27vis_aic32x4_remove(struct platform_device *pdev)
{
snd_soc_unregister_card(&mx27vis_aic32x4);

Expand All @@ -232,7 +232,7 @@ static struct platform_driver mx27vis_aic32x4_audio_driver = {
.owner = THIS_MODULE,
},
.probe = mx27vis_aic32x4_probe,
.remove = __devexit_p(mx27vis_aic32x4_remove),
.remove = mx27vis_aic32x4_remove,
};

module_platform_driver(mx27vis_aic32x4_audio_driver);
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/fsl/p1022_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static int p1022_ds_probe(struct platform_device *pdev)
*
* This function is called when the platform device is removed.
*/
static int __devexit p1022_ds_remove(struct platform_device *pdev)
static int p1022_ds_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct machine_data *mdata =
Expand All @@ -390,7 +390,7 @@ static int __devexit p1022_ds_remove(struct platform_device *pdev)

static struct platform_driver p1022_ds_driver = {
.probe = p1022_ds_probe,
.remove = __devexit_p(p1022_ds_remove),
.remove = p1022_ds_remove,
.driver = {
/*
* The name must match 'compatible' property in the device tree,
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/fsl/p1022_rdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static int p1022_rdk_probe(struct platform_device *pdev)
*
* This function is called when the platform device is removed.
*/
static int __devexit p1022_rdk_remove(struct platform_device *pdev)
static int p1022_rdk_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct machine_data *mdata =
Expand All @@ -340,7 +340,7 @@ static int __devexit p1022_rdk_remove(struct platform_device *pdev)

static struct platform_driver p1022_rdk_driver = {
.probe = p1022_rdk_probe,
.remove = __devexit_p(p1022_rdk_remove),
.remove = p1022_rdk_remove,
.driver = {
/*
* The name must match 'compatible' property in the device tree,
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/fsl/pcm030-audio-fabric.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static int __init pcm030_fabric_probe(struct platform_device *op)
return ret;
}

static int __devexit pcm030_fabric_remove(struct platform_device *op)
static int pcm030_fabric_remove(struct platform_device *op)
{
struct pcm030_audio_data *pdata = platform_get_drvdata(op);
int ret;
Expand All @@ -120,7 +120,7 @@ MODULE_DEVICE_TABLE(of, pcm030_audio_match);

static struct platform_driver pcm030_fabric_driver = {
.probe = pcm030_fabric_probe,
.remove = __devexit_p(pcm030_fabric_remove),
.remove = pcm030_fabric_remove,
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
Expand Down

0 comments on commit a0a3d51

Please sign in to comment.