Skip to content

Commit

Permalink
mmc: host: omap-hsmmc: remove init_card pdata callback from pdata
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: H. Nikolaus Schaller <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
goldelico authored and storulf committed Nov 15, 2019
1 parent 5d6bed6 commit 4d219f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down
3 changes: 0 additions & 3 deletions include/linux/platform_data/hsmmc-omap.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ struct omap_hsmmc_platform_data {
/* string specifying a particular variant of hardware */
char *version;

/* if we have special card, init it using this callback */
void (*init_card)(struct mmc_card *card);

const char *name;
u32 ocr_mask;
};

0 comments on commit 4d219f4

Please sign in to comment.