@@ -257,8 +257,9 @@ static inline void __init igep2_init_smsc911x(void) { }
static struct omap_board_config_kernel igep2_config[] __initdata = {
};
-static struct regulator_consumer_supply igep2_vmmc1_supply = {
- .supply = "vmmc",
+static struct regulator_consumer_supply igep2_vmmc1_supplies[] = {
+ [0] = { .supply = "vmmc", },
+ [1] = { .supply = "vmmc", },
};
/* VMMC1 for OMAP VDD_MMC1 (i/o) and MMC1 card */
@@ -272,8 +273,8 @@ static struct regulator_init_data igep2_vmmc1 = {
| REGULATOR_CHANGE_MODE
| REGULATOR_CHANGE_STATUS,
},
- .num_consumer_supplies = 1,
- .consumer_supplies = &igep2_vmmc1_supply,
+ .num_consumer_supplies = 2,
+ .consumer_supplies = igep2_vmmc1_supplies,
};
static struct omap2_hsmmc_info mmc[] = {
@@ -376,7 +377,8 @@ static int igep2_twl_gpio_setup(struct device *dev,
* link regulators to MMC adapters ... we "know" the
* regulators will be set up only *after* we return.
*/
- igep2_vmmc1_supply.dev = mmc[0].dev;
+ igep2_vmmc1_supplies[0].dev = mmc[0].dev;
+ igep2_vmmc1_supplies[1].dev = mmc[1].dev;
/*
* REVISIT: need ehci-omap hooks for external VBUS