Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: wan: slic_ds26522: Use module_spi_driver to simplify the code

module_spi_driver() makes the code simpler by eliminating
boilerplate code.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wei Yongjun and committed by
David S. Miller
c3afa995 521613c5

+1 -12
+1 -12
drivers/net/wan/slic_ds26522.c
··· 249 249 .id_table = slic_ds26522_id, 250 250 }; 251 251 252 - static int __init slic_ds26522_init(void) 253 - { 254 - return spi_register_driver(&slic_ds26522_driver); 255 - } 256 - 257 - static void __exit slic_ds26522_exit(void) 258 - { 259 - spi_unregister_driver(&slic_ds26522_driver); 260 - } 261 - 262 - module_init(slic_ds26522_init); 263 - module_exit(slic_ds26522_exit); 252 + module_spi_driver(slic_ds26522_driver);