aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-27 02:29:13 -0500
committerTakashi Iwai <tiwai@suse.de>2012-01-27 09:18:36 -0500
commitf443ac935a2fd80f177c6b5a580cc54ef18c552d (patch)
treeabf6e270201ba6e77d102d43e688fb0b70925570 /sound
parent98654d3fa2e6983378e3510131c5c45be97c4906 (diff)
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. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/spi/at73c213.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c
index 4dd051bdf4fd..c6500d00053b 100644
--- a/sound/spi/at73c213.c
+++ b/sound/spi/at73c213.c
@@ -1112,17 +1112,7 @@ static struct spi_driver at73c213_driver = {
1112 .remove = __devexit_p(snd_at73c213_remove), 1112 .remove = __devexit_p(snd_at73c213_remove),
1113}; 1113};
1114 1114
1115static int __init at73c213_init(void) 1115module_spi_driver(at73c213_driver);
1116{
1117 return spi_register_driver(&at73c213_driver);
1118}
1119module_init(at73c213_init);
1120
1121static void __exit at73c213_exit(void)
1122{
1123 spi_unregister_driver(&at73c213_driver);
1124}
1125module_exit(at73c213_exit);
1126 1116
1127MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>"); 1117MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>");
1128MODULE_DESCRIPTION("Sound driver for AT73C213 with Atmel SSC"); 1118MODULE_DESCRIPTION("Sound driver for AT73C213 with Atmel SSC");