ASoC: tlv320aic26: Use module_spi_driver
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 27 Aug 2012 11:30:26 +0000 (17:00 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 27 Aug 2012 16:55:27 +0000 (09:55 -0700)
module_spi_driver makes the code simpler by eliminating
module_init and module_exit calls.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/tlv320aic26.c

index 85944e95357834c5e7c5584c9998d1947a42e905..b1f6982c7c9c2615cc187649501f231098d1696c 100644 (file)
@@ -444,14 +444,4 @@ static struct spi_driver aic26_spi = {
        .remove = aic26_spi_remove,
 };
 
-static int __init aic26_init(void)
-{
-       return spi_register_driver(&aic26_spi);
-}
-module_init(aic26_init);
-
-static void __exit aic26_exit(void)
-{
-       spi_unregister_driver(&aic26_spi);
-}
-module_exit(aic26_exit);
+module_spi_driver(aic26_spi);