mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 13:11:45 +00:00
ASoC: ak4104: Convert to module_spi_driver()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
65b30bee58
commit
38d78bafb9
@ -289,17 +289,7 @@ static struct spi_driver ak4104_spi_driver = {
|
||||
.remove = __devexit_p(ak4104_spi_remove),
|
||||
};
|
||||
|
||||
static int __init ak4104_init(void)
|
||||
{
|
||||
return spi_register_driver(&ak4104_spi_driver);
|
||||
}
|
||||
module_init(ak4104_init);
|
||||
|
||||
static void __exit ak4104_exit(void)
|
||||
{
|
||||
spi_unregister_driver(&ak4104_spi_driver);
|
||||
}
|
||||
module_exit(ak4104_exit);
|
||||
module_spi_driver(ak4104_spi_driver);
|
||||
|
||||
MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>");
|
||||
MODULE_DESCRIPTION("Asahi Kasei AK4104 ALSA SoC driver");
|
||||
|
Loading…
Reference in New Issue
Block a user