Skip to content

Commit

Permalink
ALSA: Convert at73c213 to module_spi_driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
AxelLin authored and tiwai committed Jan 27, 2012
1 parent 98654d3 commit f443ac9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions sound/spi/at73c213.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f443ac9

Please sign in to comment.