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>
This commit is contained in:
Родитель
371a689f64
Коммит
6f60c22252
|
@ -939,6 +939,11 @@ static int mmc_add_disk(struct mmc_blk_data *md)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct mmc_fixup blk_fixups[] =
|
||||||
|
{
|
||||||
|
END_FIXUP
|
||||||
|
};
|
||||||
|
|
||||||
static int mmc_blk_probe(struct mmc_card *card)
|
static int mmc_blk_probe(struct mmc_card *card)
|
||||||
{
|
{
|
||||||
struct mmc_blk_data *md, *part_md;
|
struct mmc_blk_data *md, *part_md;
|
||||||
|
@ -969,6 +974,8 @@ static int mmc_blk_probe(struct mmc_card *card)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
mmc_set_drvdata(card, md);
|
mmc_set_drvdata(card, md);
|
||||||
|
mmc_fixup_device(card, blk_fixups);
|
||||||
|
|
||||||
if (mmc_add_disk(md))
|
if (mmc_add_disk(md))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче