mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
omap_hsmmc: add init_card pass-through callback
This will allow us to set up special cards in machine drivers just after they are detected by MMC core. Signed-off-by: Grazvydas Ignotas <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Tony Lindgren <[email protected]> Cc: Bob Copeland <[email protected]> Cc: Kalle Valo <[email protected]> Cc: Madhusudhan Chikkature <[email protected]> Cc: Kishore Kadiyala <[email protected]> Cc: Russell King <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6f51be3d37
commit
4816858cce
2 changed files with 12 additions and 0 deletions
|
|
@ -1598,6 +1598,14 @@ static int omap_hsmmc_get_ro(struct mmc_host *mmc)
|
|||
return mmc_slot(host).get_ro(host->dev, 0);
|
||||
}
|
||||
|
||||
static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card)
|
||||
{
|
||||
struct omap_hsmmc_host *host = mmc_priv(mmc);
|
||||
|
||||
if (mmc_slot(host).init_card)
|
||||
mmc_slot(host).init_card(card);
|
||||
}
|
||||
|
||||
static void omap_hsmmc_conf_bus_power(struct omap_hsmmc_host *host)
|
||||
{
|
||||
u32 hctl, capa, value;
|
||||
|
|
@ -1869,6 +1877,7 @@ static const struct mmc_host_ops omap_hsmmc_ops = {
|
|||
.set_ios = omap_hsmmc_set_ios,
|
||||
.get_cd = omap_hsmmc_get_cd,
|
||||
.get_ro = omap_hsmmc_get_ro,
|
||||
.init_card = omap_hsmmc_init_card,
|
||||
/* NYET -- enable_sdio_irq */
|
||||
};
|
||||
|
||||
|
|
@ -1879,6 +1888,7 @@ static const struct mmc_host_ops omap_hsmmc_ps_ops = {
|
|||
.set_ios = omap_hsmmc_set_ios,
|
||||
.get_cd = omap_hsmmc_get_cd,
|
||||
.get_ro = omap_hsmmc_get_ro,
|
||||
.init_card = omap_hsmmc_init_card,
|
||||
/* NYET -- enable_sdio_irq */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue