Commit e00c3f55 authored by Mark Brown's avatar Mark Brown

ASoC: Convert Samsung directory to module_platform_driver

Saves some boilerplate code.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarSangbeom Kim <sbkim73@samsung.com>
parent 29515d62
......@@ -509,17 +509,7 @@ static struct platform_driver s3c_ac97_driver = {
},
};
static int __init s3c_ac97_init(void)
{
return platform_driver_register(&s3c_ac97_driver);
}
module_init(s3c_ac97_init);
static void __exit s3c_ac97_exit(void)
{
platform_driver_unregister(&s3c_ac97_driver);
}
module_exit(s3c_ac97_exit);
module_platform_driver(s3c_ac97_driver);
MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>");
MODULE_DESCRIPTION("AC97 driver for the Samsung SoC");
......
......@@ -458,17 +458,7 @@ static struct platform_driver asoc_dma_driver = {
.remove = __devexit_p(samsung_asoc_platform_remove),
};
static int __init samsung_asoc_init(void)
{
return platform_driver_register(&asoc_dma_driver);
}
module_init(samsung_asoc_init);
static void __exit samsung_asoc_exit(void)
{
platform_driver_unregister(&asoc_dma_driver);
}
module_exit(samsung_asoc_exit);
module_platform_driver(asoc_dma_driver);
MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");
MODULE_DESCRIPTION("Samsung ASoC DMA Driver");
......
......@@ -1144,17 +1144,7 @@ static struct platform_driver samsung_i2s_driver = {
},
};
static int __init samsung_i2s_init(void)
{
return platform_driver_register(&samsung_i2s_driver);
}
module_init(samsung_i2s_init);
static void __exit samsung_i2s_exit(void)
{
platform_driver_unregister(&samsung_i2s_driver);
}
module_exit(samsung_i2s_exit);
module_platform_driver(samsung_i2s_driver);
/* Module information */
MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>");
......
......@@ -437,17 +437,7 @@ static struct platform_driver asoc_idma_driver = {
.remove = __devexit_p(asoc_idma_platform_remove),
};
static int __init asoc_idma_init(void)
{
return platform_driver_register(&asoc_idma_driver);
}
module_init(asoc_idma_init);
static void __exit asoc_idma_exit(void)
{
platform_driver_unregister(&asoc_idma_driver);
}
module_exit(asoc_idma_exit);
module_platform_driver(asoc_idma_driver);
MODULE_AUTHOR("Jaswinder Singh, <jassisinghbrar@gmail.com>");
MODULE_DESCRIPTION("Samsung ASoC IDMA Driver");
......
......@@ -228,17 +228,7 @@ static struct platform_driver lowland_driver = {
.remove = __devexit_p(lowland_remove),
};
static int __init lowland_audio_init(void)
{
return platform_driver_register(&lowland_driver);
}
module_init(lowland_audio_init);
static void __exit lowland_audio_exit(void)
{
platform_driver_unregister(&lowland_driver);
}
module_exit(lowland_audio_exit);
module_platform_driver(lowland_driver);
MODULE_DESCRIPTION("Lowland audio support");
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
......
......@@ -632,17 +632,7 @@ static struct platform_driver s3c_pcm_driver = {
},
};
static int __init s3c_pcm_init(void)
{
return platform_driver_register(&s3c_pcm_driver);
}
module_init(s3c_pcm_init);
static void __exit s3c_pcm_exit(void)
{
platform_driver_unregister(&s3c_pcm_driver);
}
module_exit(s3c_pcm_exit);
module_platform_driver(s3c_pcm_driver);
/* Module information */
MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>");
......
......@@ -184,17 +184,7 @@ static struct platform_driver s3c2412_iis_driver = {
},
};
static int __init s3c2412_i2s_init(void)
{
return platform_driver_register(&s3c2412_iis_driver);
}
module_init(s3c2412_i2s_init);
static void __exit s3c2412_i2s_exit(void)
{
platform_driver_unregister(&s3c2412_iis_driver);
}
module_exit(s3c2412_i2s_exit);
module_platform_driver(s3c2412_iis_driver);
/* Module information */
MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");
......
......@@ -489,17 +489,7 @@ static struct platform_driver s3c24xx_iis_driver = {
},
};
static int __init s3c24xx_i2s_init(void)
{
return platform_driver_register(&s3c24xx_iis_driver);
}
module_init(s3c24xx_i2s_init);
static void __exit s3c24xx_i2s_exit(void)
{
platform_driver_unregister(&s3c24xx_iis_driver);
}
module_exit(s3c24xx_i2s_exit);
module_platform_driver(s3c24xx_iis_driver);
/* Module information */
MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");
......
......@@ -114,21 +114,9 @@ static struct platform_driver simtec_audio_hermes_platdrv = {
.remove = __devexit_p(simtec_audio_remove),
};
MODULE_ALIAS("platform:s3c24xx-simtec-hermes-snd");
static int __init simtec_hermes_modinit(void)
{
return platform_driver_register(&simtec_audio_hermes_platdrv);
}
static void __exit simtec_hermes_modexit(void)
{
platform_driver_unregister(&simtec_audio_hermes_platdrv);
}
module_init(simtec_hermes_modinit);
module_exit(simtec_hermes_modexit);
module_platform_driver(simtec_audio_hermes_platdrv);
MODULE_ALIAS("platform:s3c24xx-simtec-hermes-snd");
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
MODULE_DESCRIPTION("ALSA SoC Simtec Audio support");
MODULE_LICENSE("GPL");
......@@ -102,21 +102,9 @@ static struct platform_driver simtec_audio_tlv320aic23_platdrv = {
.remove = __devexit_p(simtec_audio_remove),
};
MODULE_ALIAS("platform:s3c24xx-simtec-tlv320aic23");
static int __init simtec_tlv320aic23_modinit(void)
{
return platform_driver_register(&simtec_audio_tlv320aic23_platdrv);
}
static void __exit simtec_tlv320aic23_modexit(void)
{
platform_driver_unregister(&simtec_audio_tlv320aic23_platdrv);
}
module_init(simtec_tlv320aic23_modinit);
module_exit(simtec_tlv320aic23_modexit);
module_platform_driver(simtec_audio_tlv320aic32_driver);
MODULE_ALIAS("platform:s3c24xx-simtec-tlv320aic23");
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
MODULE_DESCRIPTION("ALSA SoC Simtec Audio support");
MODULE_LICENSE("GPL");
......@@ -343,19 +343,7 @@ static struct platform_driver s3c24xx_uda134x_driver = {
},
};
static int __init s3c24xx_uda134x_init(void)
{
return platform_driver_register(&s3c24xx_uda134x_driver);
}
static void __exit s3c24xx_uda134x_exit(void)
{
platform_driver_unregister(&s3c24xx_uda134x_driver);
}
module_init(s3c24xx_uda134x_init);
module_exit(s3c24xx_uda134x_exit);
module_platform_driver(s3c24xx_uda134x_driver);
MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>");
MODULE_DESCRIPTION("S3C24XX_UDA134X ALSA SoC audio driver");
......
......@@ -188,19 +188,7 @@ static struct platform_driver snd_smdk_driver = {
.remove = __devexit_p(snd_smdk_remove),
};
static int __init smdk_audio_init(void)
{
return platform_driver_register(&snd_smdk_driver);
}
module_init(smdk_audio_init);
static void __exit smdk_audio_exit(void)
{
platform_driver_unregister(&snd_smdk_driver);
}
module_exit(smdk_audio_exit);
module_platform_driver(snd_smdk_driver);
MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>");
MODULE_DESCRIPTION("ALSA SoC SMDK WM8580 for PCM");
......
......@@ -483,17 +483,7 @@ static struct platform_driver samsung_spdif_driver = {
},
};
static int __init spdif_init(void)
{
return platform_driver_register(&samsung_spdif_driver);
}
module_init(spdif_init);
static void __exit spdif_exit(void)
{
platform_driver_unregister(&samsung_spdif_driver);
}
module_exit(spdif_exit);
module_platform_driver(samsung_spdif_driver);
MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>");
MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver");
......
......@@ -347,17 +347,7 @@ static struct platform_driver speyside_driver = {
.remove = __devexit_p(speyside_remove),
};
static int __init speyside_audio_init(void)
{
return platform_driver_register(&speyside_driver);
}
module_init(speyside_audio_init);
static void __exit speyside_audio_exit(void)
{
platform_driver_unregister(&speyside_driver);
}
module_exit(speyside_audio_exit);
module_platform_driver(speyside_driver);
MODULE_DESCRIPTION("Speyside audio support");
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
......
......@@ -249,17 +249,7 @@ static struct platform_driver speyside_wm8962_driver = {
.remove = __devexit_p(speyside_wm8962_remove),
};
static int __init speyside_wm8962_audio_init(void)
{
return platform_driver_register(&speyside_wm8962_driver);
}
module_init(speyside_wm8962_audio_init);
static void __exit speyside_wm8962_audio_exit(void)
{
platform_driver_unregister(&speyside_wm8962_driver);
}
module_exit(speyside_wm8962_audio_exit);
module_platform_driver(speyside_wm8962_driver);
MODULE_DESCRIPTION("Speyside WM8962 audio support");
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment