nvdimm/blk: don't allocate unused major device number
authorNeilBrown <neilb@suse.com>
Wed, 9 Mar 2016 21:59:28 +0000 (08:59 +1100)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Mar 2016 22:59:41 +0000 (14:59 -0800)
commitec56151d382c2140851b4f25203af9016ba84fea
treef01c52c76c50dfd8c26e0f727d60aced5c7f0ac6
parent55155291b32d24371256adbcc67f9f53cf3f314f
nvdimm/blk: don't allocate unused major device number

When alloc_disk(0) is used ->major is completely ignored, all devices
are allocated with a "major" of BLOCK_EXT_MAJOR.

So don't allocate nd_blk_major

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