NVMe: don't allocate unused nvme_major
authorNeilBrown <neilb@suse.com>
Wed, 13 Jul 2016 18:03:58 +0000 (11:03 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 14 Jul 2016 15:52:56 +0000 (08:52 -0700)
commitb09dcf585df959cf26270e65941ea1f79a1345aa
tree98600092d09d49797ed3abb493fb93b4dbe0cf15
parent2fa843512bb5bbc0e876e4f55e22f26a3a8d3edb
NVMe: don't allocate unused nvme_major

When alloc_disk(0) is used, the ->major number is ignored.  All device
numbers are allocated with a major of BLOCK_EXT_MAJOR.

So remove all references to nvme_major.

[akpm@linux-foundation.org: one unregister_blkdev() was missed]
Link: http://lkml.kernel.org/r/20160602064318.4403.93301.stgit@noble
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c