mmc: quirks: Support for block quirks.
authorAndrei Warkentin <andreiw@motorola.com>
Mon, 11 Apr 2011 23:11:04 +0000 (19:11 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 01:01:25 +0000 (21:01 -0400)
Block quirks implemented using core/quirks.c support.

Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c

index 1e6bd91..288d273 100644 (file)
@@ -939,6 +939,11 @@ static int mmc_add_disk(struct mmc_blk_data *md)
        return ret;
 }
 
+static const struct mmc_fixup blk_fixups[] =
+{
+       END_FIXUP
+};
+
 static int mmc_blk_probe(struct mmc_card *card)
 {
        struct mmc_blk_data *md, *part_md;
@@ -969,6 +974,8 @@ static int mmc_blk_probe(struct mmc_card *card)
                goto out;
 
        mmc_set_drvdata(card, md);
+       mmc_fixup_device(card, blk_fixups);
+
        if (mmc_add_disk(md))
                goto out;