pmem.c 480 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2015, Christoph Hellwig.
  3. * Copyright (c) 2015, Intel Corporation.
  4. */
  5. #include <linux/platform_device.h>
  6. #include <linux/module.h>
  7. static __init int register_e820_pmem(void)
  8. {
  9. struct platform_device *pdev;
  10. /*
  11. * See drivers/nvdimm/e820.c for the implementation, this is
  12. * simply here to trigger the module to load on demand.
  13. */
  14. pdev = platform_device_alloc("e820_pmem", -1);
  15. return platform_device_add(pdev);
  16. }
  17. device_initcall(register_e820_pmem);