diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2016-12-05 09:23:20 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-12-05 17:52:21 +0100 |
commit | 3a71b3c8946fd44cd2599d9e87ac8f90c71318e1 (patch) | |
tree | 917406d2d15ad12d4b89401bb274d2c35825baca /drivers/nvdimm | |
parent | libnvdimm, namespace: use octal for permissions (diff) | |
download | linux-3a71b3c8946fd44cd2599d9e87ac8f90c71318e1.tar.xz linux-3a71b3c8946fd44cd2599d9e87ac8f90c71318e1.zip |
libnvdimm, e820: use module_platform_driver
Use module_platform_driver for the e820 driver instead of open-coding it.
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm')
-rw-r--r-- | drivers/nvdimm/e820.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/nvdimm/e820.c b/drivers/nvdimm/e820.c index 11ea90120542..6f9a6ffd7cde 100644 --- a/drivers/nvdimm/e820.c +++ b/drivers/nvdimm/e820.c @@ -84,18 +84,8 @@ static struct platform_driver e820_pmem_driver = { }, }; -static __init int e820_pmem_init(void) -{ - return platform_driver_register(&e820_pmem_driver); -} - -static __exit void e820_pmem_exit(void) -{ - platform_driver_unregister(&e820_pmem_driver); -} +module_platform_driver(e820_pmem_driver); MODULE_ALIAS("platform:e820_pmem*"); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Intel Corporation"); -module_init(e820_pmem_init); -module_exit(e820_pmem_exit); |