Commit 0582ce92 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by David S. Miller

net: ks8851: Use module_spi_driver

By using module_spi_driver we can eliminate a few lines of boilerplate code.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9f7f78b4
...@@ -1538,19 +1538,7 @@ static struct spi_driver ks8851_driver = { ...@@ -1538,19 +1538,7 @@ static struct spi_driver ks8851_driver = {
.suspend = ks8851_suspend, .suspend = ks8851_suspend,
.resume = ks8851_resume, .resume = ks8851_resume,
}; };
module_spi_driver(ks8851_driver);
static int __init ks8851_init(void)
{
return spi_register_driver(&ks8851_driver);
}
static void __exit ks8851_exit(void)
{
spi_unregister_driver(&ks8851_driver);
}
module_init(ks8851_init);
module_exit(ks8851_exit);
MODULE_DESCRIPTION("KS8851 Network driver"); MODULE_DESCRIPTION("KS8851 Network driver");
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
......
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