diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 4eb57593358796c1727045e0d91b3e3286c178de..20559ad98be13dc65f4753d6ceec1a67bb2756f8 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1715,9 +1715,9 @@ int __init nvme_core_init(void) void nvme_core_exit(void) { - unregister_blkdev(nvme_major, "nvme"); class_destroy(nvme_class); __unregister_chrdev(nvme_char_major, 0, NVME_MINORS, "nvme"); + unregister_blkdev(nvme_major, "nvme"); } MODULE_LICENSE("GPL");