forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtd: convert drivers/mtd/* to use module_spi_driver()
This patch converts the drivers in drivers/mtd/* to use the module_spi_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
- Loading branch information
Showing
3 changed files
with
3 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -450,18 +450,7 @@ static struct spi_driver sst25l_driver = { | |
.remove = __devexit_p(sst25l_remove), | ||
}; | ||
|
||
static int __init sst25l_init(void) | ||
{ | ||
return spi_register_driver(&sst25l_driver); | ||
} | ||
|
||
static void __exit sst25l_exit(void) | ||
{ | ||
spi_unregister_driver(&sst25l_driver); | ||
} | ||
|
||
module_init(sst25l_init); | ||
module_exit(sst25l_exit); | ||
module_spi_driver(sst25l_driver); | ||
|
||
MODULE_DESCRIPTION("MTD SPI driver for SST25L Flash chips"); | ||
MODULE_AUTHOR("Andre Renaud <[email protected]>, " | ||
|