提交 1a9561a3 编写于 作者: S Sachin Kamat 提交者: David S. Miller

net/phy: Use module_spi_driver in spi_ks8995.c

module_spi_driver() removes some boilerplate and makes the code
simpler.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 da6e378b
......@@ -354,19 +354,7 @@ static struct spi_driver ks8995_driver = {
.remove = ks8995_remove,
};
static int __init ks8995_init(void)
{
pr_info(DRV_DESC " version " DRV_VERSION "\n");
return spi_register_driver(&ks8995_driver);
}
module_init(ks8995_init);
static void __exit ks8995_exit(void)
{
spi_unregister_driver(&ks8995_driver);
}
module_exit(ks8995_exit);
module_spi_driver(ks8995_driver);
MODULE_DESCRIPTION(DRV_DESC);
MODULE_VERSION(DRV_VERSION);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册