NVMe: nvme_core_exit() should do cleanup in the reverse order as nvme_core_init does
authorWang Sheng-Hui <shhuiw@foxmail.com>
Thu, 28 Apr 2016 08:19:31 +0000 (16:19 +0800)
committerJens Axboe <axboe@fb.com>
Mon, 2 May 2016 15:05:03 +0000 (09:05 -0600)
commit23bd63ceea30878758c303baaf9f8e28f299c578
tree373bab032999a0e13188b7b2f0fe391b6374d41a
parent3b24774e1fb90a40836e96e39a851a774679efff
NVMe: nvme_core_exit() should do cleanup in the reverse order as nvme_core_init does

nvme_core_init does:
    1) register_blkdev
    2) __register_chrdev
    3) class_create

nvme_core_exit should do cleanup in the reverse order.

Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c