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>
This commit is contained in:
committed by
Ulf Hansson
parent
5d6bed6f48
commit
4d219f4cf0
@@ -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);
|
struct omap_hsmmc_host *host = mmc_priv(mmc);
|
||||||
|
|
||||||
if (mmc_pdata(host)->init_card)
|
if (card->type == MMC_TYPE_SDIO || card->type == MMC_TYPE_SD_COMBO) {
|
||||||
mmc_pdata(host)->init_card(card);
|
|
||||||
else if (card->type == MMC_TYPE_SDIO ||
|
|
||||||
card->type == MMC_TYPE_SD_COMBO) {
|
|
||||||
struct device_node *np = mmc_dev(mmc)->of_node;
|
struct device_node *np = mmc_dev(mmc)->of_node;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -67,9 +67,6 @@ struct omap_hsmmc_platform_data {
|
|||||||
/* string specifying a particular variant of hardware */
|
/* string specifying a particular variant of hardware */
|
||||||
char *version;
|
char *version;
|
||||||
|
|
||||||
/* if we have special card, init it using this callback */
|
|
||||||
void (*init_card)(struct mmc_card *card);
|
|
||||||
|
|
||||||
const char *name;
|
const char *name;
|
||||||
u32 ocr_mask;
|
u32 ocr_mask;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user