diff --git a/drivers/block/mg_disk.c b/drivers/block/mg_disk.c index 1ee391846e0ba5da4601bbfee266d38cd40929ba..e937fcf717690fa5a6ec2d4e7915908fbe001836 100644 --- a/drivers/block/mg_disk.c +++ b/drivers/block/mg_disk.c @@ -1015,7 +1015,7 @@ static int mg_probe(struct platform_device *plat_dev) probe_err_6: blk_cleanup_queue(host->breq); probe_err_5: - unregister_blkdev(MG_DISK_MAJ, MG_DISK_NAME); + unregister_blkdev(host->major, MG_DISK_NAME); probe_err_4: if (!prv_data->use_polling) free_irq(host->irq, host);