mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
Revert "mmc_block: add dev_t initialization check"
This reverts commit 10cd61b998.
This commit is contained in:
@@ -85,12 +85,7 @@ static void mmc_blk_put(struct mmc_blk_data *md)
|
||||
mutex_lock(&open_lock);
|
||||
md->usage--;
|
||||
if (md->usage == 0) {
|
||||
int devmaj = MAJOR(disk_devt(md->disk));
|
||||
int devidx = MINOR(disk_devt(md->disk)) >> MMC_SHIFT;
|
||||
|
||||
if (!devmaj)
|
||||
devidx = md->disk->first_minor >> MMC_SHIFT;
|
||||
|
||||
__clear_bit(devidx, dev_use);
|
||||
|
||||
put_disk(md->disk);
|
||||
|
||||
Reference in New Issue
Block a user