Commit 3a71b3c8 authored by Johannes Thumshirn's avatar Johannes Thumshirn Committed by Dan Williams

libnvdimm, e820: use module_platform_driver

Use module_platform_driver for the e820 driver instead of open-coding it.
Signed-off-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent b44fe760
...@@ -84,18 +84,8 @@ static struct platform_driver e820_pmem_driver = { ...@@ -84,18 +84,8 @@ static struct platform_driver e820_pmem_driver = {
}, },
}; };
static __init int e820_pmem_init(void) module_platform_driver(e820_pmem_driver);
{
return platform_driver_register(&e820_pmem_driver);
}
static __exit void e820_pmem_exit(void)
{
platform_driver_unregister(&e820_pmem_driver);
}
MODULE_ALIAS("platform:e820_pmem*"); MODULE_ALIAS("platform:e820_pmem*");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Intel Corporation"); MODULE_AUTHOR("Intel Corporation");
module_init(e820_pmem_init);
module_exit(e820_pmem_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment