]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - arch/x86/kernel/pmem.c
x86/process: Add proper bound checks in 64bit get_wchan()
[mirror_ubuntu-zesty-kernel.git] / arch / x86 / kernel / pmem.c
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
8 static __init int register_e820_pmem(void)
9 {
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);
18 }
19 device_initcall(register_e820_pmem);