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>
This commit is contained in:
parent
b10be23b88
commit
9bb280a2eb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue