]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/x86/kernel/pmem.c
Merge tag 'arc-4.4-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / pmem.c
CommitLineData
ec776ef6
CH
1/*
2 * Copyright (c) 2015, Christoph Hellwig.
9f53f9fa 3 * Copyright (c) 2015, Intel Corporation.
ec776ef6 4 */
ec776ef6 5#include <linux/platform_device.h>
9f53f9fa 6#include <linux/module.h>
ec776ef6 7
9f53f9fa 8static __init int register_e820_pmem(void)
ec776ef6 9{
7a67832c
DW
10 struct platform_device *pdev;
11
12 /*
13 * See drivers/nvdimm/e820.c for the implementation, this is
14 * simply here to trigger the module to load on demand.
15 */
16 pdev = platform_device_alloc("e820_pmem", -1);
17 return platform_device_add(pdev);
ec776ef6 18}
9f53f9fa 19device_initcall(register_e820_pmem);