mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
libnvdimm, e820: use module_platform_driver
Use module_platform_driver for the e820 driver instead of open-coding it. Signed-off-by: Johannes Thumshirn <[email protected]> Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
b44fe76043
commit
3a71b3c894
1 changed files with 1 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue