mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mmc: host: omap_hsmmc: remove unused platform callbacks
Remove unused callbacks in the omap_hsmmc_platform_data structure Signed-off-by: Faiz Abbas <[email protected]> Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
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;
|
||||
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
|
||||
* 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))
|
||||
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);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
|
@ -400,9 +394,6 @@ static int omap_hsmmc_set_power(struct omap_hsmmc_host *host, int power_on,
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (mmc_pdata(host)->after_set_reg)
|
||||
mmc_pdata(host)->after_set_reg(host->dev, power_on, vdd);
|
||||
|
||||
return 0;
|
||||
|
||||
err_set_voltage:
|
||||
|
|
@ -469,8 +460,6 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
|
|||
int ret;
|
||||
struct mmc_host *mmc = host->mmc;
|
||||
|
||||
if (mmc_pdata(host)->set_power)
|
||||
return 0;
|
||||
|
||||
ret = mmc_regulator_get_supply(mmc);
|
||||
if (ret == -EPROBE_DEFER)
|
||||
|
|
|
|||
Loading…
Reference in a new issue