Commit 01b88070 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Marc Kleine-Budde
Browse files

can: mcp251x: 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 <>
Signed-off-by: default avatarMarc Kleine-Budde <>
parent 4c2e33f0
......@@ -1216,19 +1216,7 @@ static struct spi_driver mcp251x_can_driver = {
.suspend = mcp251x_can_suspend,
.resume = mcp251x_can_resume,
static int __init mcp251x_can_init(void)
return spi_register_driver(&mcp251x_can_driver);
static void __exit mcp251x_can_exit(void)
MODULE_AUTHOR("Chris Elston <>, "
"Christian Pellegrin <>");
Supports Markdown
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