summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-08-06 15:04:22 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-08-19 02:21:36 +0200
commit2445d33d852320d4ce700b2428d60991f8cf478f (patch)
treeb6631382997a661f9cff7e47361f21e9a0990756 /drivers/mtd
parentmtd: denali: hide core part from user in Kconfig (diff)
downloadlinux-2445d33d852320d4ce700b2428d60991f8cf478f.tar.xz
linux-2445d33d852320d4ce700b2428d60991f8cf478f.zip
mtd: denali_pci: use module_pci_driver() macro
Let's use module_pci_driver() macro to reduce code base of the driver. There is no functional change. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/denali_pci.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mtd/nand/denali_pci.c b/drivers/mtd/nand/denali_pci.c
index 6e2f387b823f..29e5d0c7d2d3 100644
--- a/drivers/mtd/nand/denali_pci.c
+++ b/drivers/mtd/nand/denali_pci.c
@@ -129,14 +129,4 @@ static struct pci_driver denali_pci_driver = {
.remove = denali_pci_remove,
};
-static int denali_init_pci(void)
-{
- return pci_register_driver(&denali_pci_driver);
-}
-module_init(denali_init_pci);
-
-static void denali_exit_pci(void)
-{
- pci_unregister_driver(&denali_pci_driver);
-}
-module_exit(denali_exit_pci);
+module_pci_driver(denali_pci_driver);