Commit 1a9561a3 authored by Sachin Kamat's avatar Sachin Kamat Committed by 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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent da6e378b
...@@ -354,19 +354,7 @@ static struct spi_driver ks8995_driver = { ...@@ -354,19 +354,7 @@ static struct spi_driver ks8995_driver = {
.remove = ks8995_remove, .remove = ks8995_remove,
}; };
static int __init ks8995_init(void) module_spi_driver(ks8995_driver);
{
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_DESCRIPTION(DRV_DESC); MODULE_DESCRIPTION(DRV_DESC);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment