mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
mmc: host: omap_hsmmc: remove unused platform callbacks
Remove unused callbacks in the omap_hsmmc_platform_data structure Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
ba64792ff9
commit
36acbd9e83
2 changed files with 0 additions and 21 deletions
|
@ -356,9 +356,6 @@ static int omap_hsmmc_set_power(struct omap_hsmmc_host *host, int power_on,
|
||||||
struct mmc_host *mmc = host->mmc;
|
struct mmc_host *mmc = host->mmc;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (mmc_pdata(host)->set_power)
|
|
||||||
return mmc_pdata(host)->set_power(host->dev, power_on, vdd);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we don't see a Vcc regulator, assume it's a fixed
|
* If we don't see a Vcc regulator, assume it's a fixed
|
||||||
* voltage always-on regulator.
|
* voltage always-on regulator.
|
||||||
|
@ -366,9 +363,6 @@ static int omap_hsmmc_set_power(struct omap_hsmmc_host *host, int power_on,
|
||||||
if (IS_ERR(mmc->supply.vmmc))
|
if (IS_ERR(mmc->supply.vmmc))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (mmc_pdata(host)->before_set_reg)
|
|
||||||
mmc_pdata(host)->before_set_reg(host->dev, power_on, vdd);
|
|
||||||
|
|
||||||
ret = omap_hsmmc_set_pbias(host, false, 0);
|
ret = omap_hsmmc_set_pbias(host, false, 0);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -400,9 +394,6 @@ static int omap_hsmmc_set_power(struct omap_hsmmc_host *host, int power_on,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mmc_pdata(host)->after_set_reg)
|
|
||||||
mmc_pdata(host)->after_set_reg(host->dev, power_on, vdd);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_set_voltage:
|
err_set_voltage:
|
||||||
|
@ -469,8 +460,6 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
|
||||||
int ret;
|
int ret;
|
||||||
struct mmc_host *mmc = host->mmc;
|
struct mmc_host *mmc = host->mmc;
|
||||||
|
|
||||||
if (mmc_pdata(host)->set_power)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
ret = mmc_regulator_get_supply(mmc);
|
ret = mmc_regulator_get_supply(mmc);
|
||||||
if (ret == -EPROBE_DEFER)
|
if (ret == -EPROBE_DEFER)
|
||||||
|
|
|
@ -55,9 +55,6 @@ struct omap_hsmmc_platform_data {
|
||||||
u32 caps; /* Used for the MMC driver on 2430 and later */
|
u32 caps; /* Used for the MMC driver on 2430 and later */
|
||||||
u32 pm_caps; /* PM capabilities of the mmc */
|
u32 pm_caps; /* PM capabilities of the mmc */
|
||||||
|
|
||||||
/* use the internal clock */
|
|
||||||
unsigned internal_clock:1;
|
|
||||||
|
|
||||||
/* nonremovable e.g. eMMC */
|
/* nonremovable e.g. eMMC */
|
||||||
unsigned nonremovable:1;
|
unsigned nonremovable:1;
|
||||||
|
|
||||||
|
@ -73,13 +70,6 @@ struct omap_hsmmc_platform_data {
|
||||||
int gpio_cd; /* gpio (card detect) */
|
int gpio_cd; /* gpio (card detect) */
|
||||||
int gpio_cod; /* gpio (cover detect) */
|
int gpio_cod; /* gpio (cover detect) */
|
||||||
int gpio_wp; /* gpio (write protect) */
|
int gpio_wp; /* gpio (write protect) */
|
||||||
|
|
||||||
int (*set_power)(struct device *dev, int power_on, int vdd);
|
|
||||||
void (*remux)(struct device *dev, int power_on);
|
|
||||||
/* Call back before enabling / disabling regulators */
|
|
||||||
void (*before_set_reg)(struct device *dev, int power_on, int vdd);
|
|
||||||
/* Call back after enabling / disabling regulators */
|
|
||||||
void (*after_set_reg)(struct device *dev, int power_on, int vdd);
|
|
||||||
/* if we have special card, init it using this callback */
|
/* if we have special card, init it using this callback */
|
||||||
void (*init_card)(struct mmc_card *card);
|
void (*init_card)(struct mmc_card *card);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue