]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3d782b687af901e343ad462a75da47910549c44
tree98600092d09d49797ed3abb493fb93b4dbe0cf15
parent3fe79b7c0d3869e0cb3a35721aef7ce492fb60c5
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