ASoC: Convert kirkwood 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
d0efa6a279
commit
41b1022509
|
@ -388,17 +388,7 @@ static struct platform_driver kirkwood_pcm_driver = {
|
||||||
.remove = __devexit_p(kirkwood_soc_platform_remove),
|
.remove = __devexit_p(kirkwood_soc_platform_remove),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init kirkwood_pcm_init(void)
|
module_platform_driver(kirkwood_pcm_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&kirkwood_pcm_driver);
|
|
||||||
}
|
|
||||||
module_init(kirkwood_pcm_init);
|
|
||||||
|
|
||||||
static void __exit kirkwood_pcm_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&kirkwood_pcm_driver);
|
|
||||||
}
|
|
||||||
module_exit(kirkwood_pcm_exit);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");
|
MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");
|
||||||
MODULE_DESCRIPTION("Marvell Kirkwood Audio DMA module");
|
MODULE_DESCRIPTION("Marvell Kirkwood Audio DMA module");
|
||||||
|
|
|
@ -483,17 +483,7 @@ static struct platform_driver kirkwood_i2s_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init kirkwood_i2s_init(void)
|
module_platform_driver(kirkwood_i2s_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&kirkwood_i2s_driver);
|
|
||||||
}
|
|
||||||
module_init(kirkwood_i2s_init);
|
|
||||||
|
|
||||||
static void __exit kirkwood_i2s_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&kirkwood_i2s_driver);
|
|
||||||
}
|
|
||||||
module_exit(kirkwood_i2s_exit);
|
|
||||||
|
|
||||||
/* Module information */
|
/* Module information */
|
||||||
MODULE_AUTHOR("Arnaud Patard, <arnaud.patard@rtp-net.org>");
|
MODULE_AUTHOR("Arnaud Patard, <arnaud.patard@rtp-net.org>");
|
||||||
|
|
Loading…
Reference in New Issue