pmem: don't allocate unused major device number
authorNeilBrown <neilb@suse.com>
Tue, 8 Mar 2016 22:21:54 +0000 (09:21 +1100)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Mar 2016 19:31:34 +0000 (11:31 -0800)
commit55155291b32d24371256adbcc67f9f53cf3f314f
treec5ff7bdc93a893e56a2c80ed6d6ca1ac58da886a
parentaf1996ef59dbcb36fe4878df7c717a02eb89d07a
pmem: don't allocate unused major device number

When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major
number is completely ignored:  all devices are allocated with a
major of BLOCK_EXT_MAJOR.

So there is no point allocating pmem_major.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c