Skip to content

Commit

Permalink
mmc: quirks: Support for block quirks.
Browse files Browse the repository at this point in the history
Block quirks implemented using core/quirks.c support.

Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Andrei Warkentin authored and Chris Ball committed May 25, 2011
1 parent 371a689 commit 6f60c22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 6f60c22

Please sign in to comment.