Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297336
b: refs/heads/master
c: 1cb9af4
h: refs/heads/master
v: v3
  • Loading branch information
Rajendra Nayak authored and Chris Ball committed Mar 27, 2012
1 parent 8a34c35 commit 4351412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69b07ecee936c49f8b7a2099b4276fec7dff6827
refs/heads/master: 1cb9af49a1ba2d7fc1c7236df5513449dda30a12
21 changes: 1 addition & 20 deletions trunk/drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,32 +297,13 @@ static int omap_hsmmc_set_power(struct device *dev, int slot, int power_on,
return ret;
}

static int omap_hsmmc_4_set_power(struct device *dev, int slot, int power_on,
int vdd)
{
return 0;
}

static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
{
struct regulator *reg;
int ret = 0;
int ocr_value = 0;

switch (host->id) {
case OMAP_MMC1_DEVID:
case OMAP_MMC2_DEVID:
case OMAP_MMC3_DEVID:
case OMAP_MMC5_DEVID:
/* On-chip level shifting via PBIAS0/PBIAS1 */
mmc_slot(host).set_power = omap_hsmmc_set_power;
break;
case OMAP_MMC4_DEVID:
mmc_slot(host).set_power = omap_hsmmc_4_set_power;
default:
pr_err("MMC%d configuration not supported!\n", host->id);
return -EINVAL;
}
mmc_slot(host).set_power = omap_hsmmc_set_power;

reg = regulator_get(host->dev, "vmmc");
if (IS_ERR(reg)) {
Expand Down

0 comments on commit 4351412

Please sign in to comment.