aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrei Warkentin <andreiw@motorola.com>2011-04-11 19:11:04 -0400
committerChris Ball <cjb@laptop.org>2011-05-24 21:01:25 -0400
commit6f60c22252af05df94352240f30f9fc84090d88d (patch)
treef7c4f8c9cc726491c8f515b0f87a6905795ae819 /drivers
parent371a689f64b0da140c3bcd3f55305ffa1c3a58ef (diff)
mmc: quirks: Support for block quirks.
Block quirks implemented using core/quirks.c support. Signed-off-by: Andrei Warkentin <andreiw@motorola.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/card/block.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 1e6bd910e79..288d27394ef 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -939,6 +939,11 @@ static int mmc_add_disk(struct mmc_blk_data *md)
939 return ret; 939 return ret;
940} 940}
941 941
942static const struct mmc_fixup blk_fixups[] =
943{
944 END_FIXUP
945};
946
942static int mmc_blk_probe(struct mmc_card *card) 947static int mmc_blk_probe(struct mmc_card *card)
943{ 948{
944 struct mmc_blk_data *md, *part_md; 949 struct mmc_blk_data *md, *part_md;
@@ -969,6 +974,8 @@ static int mmc_blk_probe(struct mmc_card *card)
969 goto out; 974 goto out;
970 975
971 mmc_set_drvdata(card, md); 976 mmc_set_drvdata(card, md);
977 mmc_fixup_device(card, blk_fixups);
978
972 if (mmc_add_disk(md)) 979 if (mmc_add_disk(md))
973 goto out; 980 goto out;
974 981