提交 c3afa995 编写于 作者: W Wei Yongjun 提交者: David S. Miller

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: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 521613c5
...@@ -249,15 +249,4 @@ static struct spi_driver slic_ds26522_driver = { ...@@ -249,15 +249,4 @@ static struct spi_driver slic_ds26522_driver = {
.id_table = slic_ds26522_id, .id_table = slic_ds26522_id,
}; };
static int __init slic_ds26522_init(void) module_spi_driver(slic_ds26522_driver);
{
return spi_register_driver(&slic_ds26522_driver);
}
static void __exit slic_ds26522_exit(void)
{
spi_unregister_driver(&slic_ds26522_driver);
}
module_init(slic_ds26522_init);
module_exit(slic_ds26522_exit);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册