diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2019-11-07 11:30:41 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2019-11-15 09:59:19 +0100 |
commit | 4d219f4cf0322ab40c1b21a836a6d4b61e01216f (patch) | |
tree | 43ac5c5e67dadc265d6a40a6a8c86e30bc54ad6f /drivers/mmc/host/omap_hsmmc.c | |
parent | 5d6bed6f48110d98bf3f5083ea8d6fde389c5de3 (diff) | |
download | linux-4d219f4cf0322ab40c1b21a836a6d4b61e01216f.tar.gz linux-4d219f4cf0322ab40c1b21a836a6d4b61e01216f.tar.bz2 linux-4d219f4cf0322ab40c1b21a836a6d4b61e01216f.zip |
mmc: host: omap-hsmmc: remove init_card pdata callback from pdata
Now as we have removed the last user (pandora_wl1251_init_card)
of this callback, we can remove it from the hsmmc code.
Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/omap_hsmmc.c')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index d0df054b0b47..767e964ca5a2 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1510,10 +1510,7 @@ static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card) { struct omap_hsmmc_host *host = mmc_priv(mmc); - if (mmc_pdata(host)->init_card) - mmc_pdata(host)->init_card(card); - else if (card->type == MMC_TYPE_SDIO || - card->type == MMC_TYPE_SD_COMBO) { + if (card->type == MMC_TYPE_SDIO || card->type == MMC_TYPE_SD_COMBO) { struct device_node *np = mmc_dev(mmc)->of_node; /* |