]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm, e820: skip module loading when no type-12
authorDan Williams <dan.j.williams@intel.com>
Mon, 30 Nov 2015 17:10:33 +0000 (09:10 -0800)
committerDan Williams <dan.j.williams@intel.com>
Mon, 30 Nov 2015 17:10:33 +0000 (09:10 -0800)
commitfc15cc2036e8c0b2e384887c77daa1947483f0f6
tree0e20a4644c52a6ec25d8509af033f6155475eec9
parentcd59478e284e721a7b8ab204f564063d276991cf
libnvdimm, e820: skip module loading when no type-12

If there are no persistent memory ranges present then don't bother
creating the platform device.  Otherwise, it loads the full libnvdimm
sub-system only to discover no resources present.

Reported-by: Andy Lutomirski <luto@amacapital.net>
Acked-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/x86/kernel/pmem.c