ASoC: ak4104: Convert to module_spi_driver()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 17 Feb 2012 06:50:35 +0000 (22:50 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 20 Feb 2012 22:01:01 +0000 (22:01 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ak4104.c

index 6f938929154ef01b9675d82db0913100a6e8c530..f12c115484956a62a76071003e4e55733a490194 100644 (file)
@@ -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");