mmc: card: Do not scan boot partitions

Message ID 1339506253-7164-1-git-send-email-johan.rudholm@stericsson.com
State New
Headers show

Commit Message

Johan Rudholm June 12, 2012, 1:04 p.m.
Do not scan boot partitions for "soft" partitions, since the boot
partitions are supposed to contain boot code. Silences the following
message during boot:

 mmcblkXbootY: unknown partition table

Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
---
 drivers/mmc/card/block.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 7e3f453..efdea68 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1515,6 +1515,8 @@  static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
 	md->disk->queue = md->queue.queue;
 	md->disk->driverfs_dev = parent;
 	set_disk_ro(md->disk, md->read_only || default_ro);
+	if (area_type & MMC_BLK_DATA_AREA_BOOT)
+		md->disk->flags = GENHD_FL_NO_PART_SCAN;
 
 	/*
 	 * As discussed on lkml, GENHD_FL_REMOVABLE should: