diff mbox

[1/3] ASoC: tlv320aic26: Use module_spi_driver

Message ID 1346067028-9534-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Aug. 27, 2012, 11:30 a.m. UTC
module_spi_driver makes the code simpler by eliminating
module_init and module_exit calls.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 sound/soc/codecs/tlv320aic26.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

Comments

Mark Brown Aug. 27, 2012, 4:55 p.m. UTC | #1
On Mon, Aug 27, 2012 at 05:00:26PM +0530, Sachin Kamat wrote:
> module_spi_driver makes the code simpler by eliminating
> module_init and module_exit calls.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c
index 85944e9..b1f6982 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);