mtd: use module_pci_driver
This patch converts the drivers in drivers/mtd/* to use module_pci_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:

committed by
David Woodhouse

parent
4aa6ae3ecc
commit
4d16cd6587
@@ -1104,18 +1104,7 @@ static struct pci_driver r852_pci_driver = {
|
||||
.driver.pm = &r852_pm_ops,
|
||||
};
|
||||
|
||||
static __init int r852_module_init(void)
|
||||
{
|
||||
return pci_register_driver(&r852_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit r852_module_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&r852_pci_driver);
|
||||
}
|
||||
|
||||
module_init(r852_module_init);
|
||||
module_exit(r852_module_exit);
|
||||
module_pci_driver(r852_pci_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Maxim Levitsky <maximlevitsky@gmail.com>");
|
||||
|
Reference in New Issue
Block a user