MMC: Support for block quirks.
authorAndrei Warkentin <andreiw@motorola.com>
Wed, 9 Mar 2011 21:35:04 +0000 (15:35 -0600)
committerKen Sumrall <ksumrall@android.com>
Fri, 8 Apr 2011 00:53:29 +0000 (17:53 -0700)
Block quirks implemented using core/quirks.c support.

Change-Id: I81d9ad57a7ae95c60ee8026f090c8df7c75fd069
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
drivers/mmc/card/block.c

index 7054fd5863a08d47cb9b509151f5ea02cf148deb..913f3949b36016629ca29833cf1e5ed2a7584be7 100644 (file)
@@ -686,6 +686,11 @@ mmc_blk_set_blksize(struct mmc_blk_data *md, struct mmc_card *card)
        return 0;
 }
 
+static const struct mmc_fixup blk_fixups[] =
+{
+       END_FIXUP
+};
+
 static int mmc_blk_probe(struct mmc_card *card)
 {
        struct mmc_blk_data *md;
@@ -714,6 +719,8 @@ static int mmc_blk_probe(struct mmc_card *card)
                cap_str, md->read_only ? "(ro)" : "");
 
        mmc_set_drvdata(card, md);
+       mmc_fixup_device(card, blk_fixups);
+
 #ifdef CONFIG_MMC_BLOCK_DEFERRED_RESUME
        mmc_set_bus_resume_policy(card->host, 1);
 #endif