Skip to contentSkip to conversation

ALSA: Convert at73c213 to module_spi_driver

PATCH New Axel Lin 1 participant 1 message Jan 27, 2012 Sound

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ALSA: Convert at73c213 to module_spi_driver

This patch converts at73c213 to use the module_spi_driver() macro which makes the code smaller and a bit simpler.

---
 sound/spi/at73c213.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
sound/spi/at73c213.c +1 -11
index 4dd051b..c6500d0 100644
@@ -1112,17 +1112,7 @@ static struct spi_driver at73c213_driver = {
 	.remove		= __devexit_p(snd_at73c213_remove),
 };
 
-static int __init at73c213_init(void)
-{
-	return spi_register_driver(&at73c213_driver);
-}
-module_init(at73c213_init);
-
-static void __exit at73c213_exit(void)
-{
-	spi_unregister_driver(&at73c213_driver);
-}
-module_exit(at73c213_exit);
+module_spi_driver(at73c213_driver);
 
 MODULE_AUTHOR("Hans-Christian Egtvedt <[email protected]>");
 MODULE_DESCRIPTION("Sound driver for AT73C213 with Atmel SSC");
Signature · 1 line
1.7.5.4