MISC: convert drivers/misc/* to use module_spi_driver()
This patch converts the drivers in drivers/misc/* to use the module_spi_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Michael Hennerich <hennerich@blackfin.uclinux.org> Cc: Anatolij Gustschin <agust@denx.de> Cc: Daniel Mack <zonque@gmail.com> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
a64fe2ed76
commit
a3dc3c9eb0
@@ -392,17 +392,7 @@ static struct spi_driver eeprom_93xx46_driver = {
|
||||
.remove = __devexit_p(eeprom_93xx46_remove),
|
||||
};
|
||||
|
||||
static int __init eeprom_93xx46_init(void)
|
||||
{
|
||||
return spi_register_driver(&eeprom_93xx46_driver);
|
||||
}
|
||||
module_init(eeprom_93xx46_init);
|
||||
|
||||
static void __exit eeprom_93xx46_exit(void)
|
||||
{
|
||||
spi_unregister_driver(&eeprom_93xx46_driver);
|
||||
}
|
||||
module_exit(eeprom_93xx46_exit);
|
||||
module_spi_driver(eeprom_93xx46_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("Driver for 93xx46 EEPROMs");
|
||||
|
Reference in New Issue
Block a user