Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154542
b: refs/heads/master
c: 762ad3a
h: refs/heads/master
v: v3
  • Loading branch information
Grazvydas Ignotas authored and Tony Lindgren committed Jun 23, 2009
1 parent 7bd3d35 commit 75cb342
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: d376f89701b0aa5b45d25fbfbeb1a0040399ad30
refs/heads/master: 762ad3a476baa1831f732488e80960f4aa024393
13 changes: 12 additions & 1 deletion trunk/arch/arm/mach-omap2/mmc-twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,19 @@ static int twl_mmc1_set_power(struct device *dev, int slot, int power_on,
static int twl_mmc23_set_power(struct device *dev, int slot, int power_on, int vdd)
{
int ret = 0;
struct twl_mmc_controller *c = &hsmmc[1];
struct twl_mmc_controller *c = NULL;
struct omap_mmc_platform_data *mmc = dev->platform_data;
int i;

for (i = 1; i < ARRAY_SIZE(hsmmc); i++) {
if (mmc == hsmmc[i].mmc) {
c = &hsmmc[i];
break;
}
}

if (c == NULL)
return -ENODEV;

/* If we don't see a Vcc regulator, assume it's a fixed
* voltage always-on regulator.
Expand Down

0 comments on commit 75cb342

Please sign in to comment.