mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 01:10:28 +00:00
net: ks8851: Use module_spi_driver
By using module_spi_driver we can eliminate a few lines of boilerplate code. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9f7f78b479
commit
0582ce92a0
@ -1538,19 +1538,7 @@ static struct spi_driver ks8851_driver = {
|
||||
.suspend = ks8851_suspend,
|
||||
.resume = ks8851_resume,
|
||||
};
|
||||
|
||||
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_spi_driver(ks8851_driver);
|
||||
|
||||
MODULE_DESCRIPTION("KS8851 Network driver");
|
||||
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
|
||||
|
Loading…
Reference in New Issue
Block a user