Message ID | AANLkTi=odLjJtR19fMAyDNB9f+FV_Y-e48Li7fkZTKrv@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/drivers/mmc/card/block.c 2011-01-31 08:54:56.908952200 -0500 +++ b/drivers/mmc/card/block.c 2011-01-31 08:56:44.175950200 -0500 @@ -621,6 +621,7 @@ md->disk->private_data = md; md->disk->queue = md->queue.queue; md->disk->driverfs_dev = &card->dev; + set_disk_ro(md->disk, md->read_only); /* * As discussed on lkml, GENHD_FL_REMOVABLE should: