summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-08-27 17:00:26 +0530
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-27 09:55:27 -0700
commit9bb280a2eb9f4bc951549dceb1d4e0b0a316eb95 (patch)
tree5f37483292f31e4a592a26cc2c8352b97fe12372
parentb10be23b88566c0f14889dd981ebfca1ef427b8b (diff)
downloadblackbird-op-linux-9bb280a2eb9f4bc951549dceb1d4e0b0a316eb95.tar.gz
blackbird-op-linux-9bb280a2eb9f4bc951549dceb1d4e0b0a316eb95.zip
ASoC: tlv320aic26: Use module_spi_driver
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>
-rw-r--r--sound/soc/codecs/tlv320aic26.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c
index 85944e953578..b1f6982c7c9c 100644
--- a/sound/soc/codecs/tlv320aic26.c
+++ b/sound/soc/codecs/tlv320aic26.c
@@ -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);
OpenPOWER on IntegriCloud