nvdimm/btt: 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 23:00:24 +0000 (15:00 -0800)
commitff8e92d5d94b99aab39f439d532cba435947dfc0
treeb06ec5048a57e07f4a4287fa199947056c27b2bf
parentec56151d382c2140851b4f25203af9016ba84fea
nvdimm/btt: don't allocate unused major device number

alloc_disk(0) does not require or use a ->major number,
all devices are allocated with a major of BLOCK_EXT_MAJOR.

So don't allocate btt_major.

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