mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
ASoC: Convert jz4740 directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
7a24b2ba59
commit
c32986e66b
2 changed files with 2 additions and 22 deletions
|
@ -519,17 +519,7 @@ static struct platform_driver jz4740_i2s_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init jz4740_i2s_init(void)
|
||||
{
|
||||
return platform_driver_register(&jz4740_i2s_driver);
|
||||
}
|
||||
module_init(jz4740_i2s_init);
|
||||
|
||||
static void __exit jz4740_i2s_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&jz4740_i2s_driver);
|
||||
}
|
||||
module_exit(jz4740_i2s_exit);
|
||||
module_platform_driver(jz4740_i2s_driver);
|
||||
|
||||
MODULE_AUTHOR("Lars-Peter Clausen, <lars@metafoo.de>");
|
||||
MODULE_DESCRIPTION("Ingenic JZ4740 SoC I2S driver");
|
||||
|
|
|
@ -356,17 +356,7 @@ static struct platform_driver jz4740_pcm_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init jz4740_soc_platform_init(void)
|
||||
{
|
||||
return platform_driver_register(&jz4740_pcm_driver);
|
||||
}
|
||||
module_init(jz4740_soc_platform_init);
|
||||
|
||||
static void __exit jz4740_soc_platform_exit(void)
|
||||
{
|
||||
return platform_driver_unregister(&jz4740_pcm_driver);
|
||||
}
|
||||
module_exit(jz4740_soc_platform_exit);
|
||||
module_platform_driver(jz4740_pcm_driver);
|
||||
|
||||
MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
|
||||
MODULE_DESCRIPTION("Ingenic SoC JZ4740 PCM driver");
|
||||
|
|
Loading…
Reference in a new issue