diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-overo.c')
-rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index d06248f0b802..1bf2f39b9d0e 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -74,15 +74,16 @@ | |||
74 | defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) | 74 | defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) |
75 | 75 | ||
76 | /* fixed regulator for ads7846 */ | 76 | /* fixed regulator for ads7846 */ |
77 | static struct regulator_consumer_supply ads7846_supply = | 77 | static struct regulator_consumer_supply ads7846_supply[] = { |
78 | REGULATOR_SUPPLY("vcc", "spi1.0"); | 78 | REGULATOR_SUPPLY("vcc", "spi1.0"), |
79 | }; | ||
79 | 80 | ||
80 | static struct regulator_init_data vads7846_regulator = { | 81 | static struct regulator_init_data vads7846_regulator = { |
81 | .constraints = { | 82 | .constraints = { |
82 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 83 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
83 | }, | 84 | }, |
84 | .num_consumer_supplies = 1, | 85 | .num_consumer_supplies = ARRAY_SIZE(ads7846_supply), |
85 | .consumer_supplies = &ads7846_supply, | 86 | .consumer_supplies = ads7846_supply, |
86 | }; | 87 | }; |
87 | 88 | ||
88 | static struct fixed_voltage_config vads7846 = { | 89 | static struct fixed_voltage_config vads7846 = { |
@@ -264,8 +265,9 @@ static struct omap_dss_board_info overo_dss_data = { | |||
264 | .default_device = &overo_dvi_device, | 265 | .default_device = &overo_dvi_device, |
265 | }; | 266 | }; |
266 | 267 | ||
267 | static struct regulator_consumer_supply overo_vdda_dac_supply = | 268 | static struct regulator_consumer_supply overo_vdda_dac_supply[] = { |
268 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"); | 269 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), |
270 | }; | ||
269 | 271 | ||
270 | static struct regulator_consumer_supply overo_vdds_dsi_supply[] = { | 272 | static struct regulator_consumer_supply overo_vdds_dsi_supply[] = { |
271 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"), | 273 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"), |
@@ -319,8 +321,8 @@ static struct omap2_hsmmc_info mmc[] = { | |||
319 | {} /* Terminator */ | 321 | {} /* Terminator */ |
320 | }; | 322 | }; |
321 | 323 | ||
322 | static struct regulator_consumer_supply overo_vmmc1_supply = { | 324 | static struct regulator_consumer_supply overo_vmmc1_supply[] = { |
323 | .supply = "vmmc", | 325 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), |
324 | }; | 326 | }; |
325 | 327 | ||
326 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) | 328 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) |
@@ -415,8 +417,6 @@ static int overo_twl_gpio_setup(struct device *dev, | |||
415 | { | 417 | { |
416 | omap2_hsmmc_init(mmc); | 418 | omap2_hsmmc_init(mmc); |
417 | 419 | ||
418 | overo_vmmc1_supply.dev = mmc[0].dev; | ||
419 | |||
420 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) | 420 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) |
421 | /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */ | 421 | /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */ |
422 | gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1; | 422 | gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1; |
@@ -447,8 +447,8 @@ static struct regulator_init_data overo_vmmc1 = { | |||
447 | | REGULATOR_CHANGE_MODE | 447 | | REGULATOR_CHANGE_MODE |
448 | | REGULATOR_CHANGE_STATUS, | 448 | | REGULATOR_CHANGE_STATUS, |
449 | }, | 449 | }, |
450 | .num_consumer_supplies = 1, | 450 | .num_consumer_supplies = ARRAY_SIZE(overo_vmmc1_supply), |
451 | .consumer_supplies = &overo_vmmc1_supply, | 451 | .consumer_supplies = overo_vmmc1_supply, |
452 | }; | 452 | }; |
453 | 453 | ||
454 | /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ | 454 | /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ |
@@ -461,8 +461,8 @@ static struct regulator_init_data overo_vdac = { | |||
461 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 461 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
462 | | REGULATOR_CHANGE_STATUS, | 462 | | REGULATOR_CHANGE_STATUS, |
463 | }, | 463 | }, |
464 | .num_consumer_supplies = 1, | 464 | .num_consumer_supplies = ARRAY_SIZE(overo_vdda_dac_supply), |
465 | .consumer_supplies = &overo_vdda_dac_supply, | 465 | .consumer_supplies = overo_vdda_dac_supply, |
466 | }; | 466 | }; |
467 | 467 | ||
468 | /* VPLL2 for digital video outputs */ | 468 | /* VPLL2 for digital video outputs */ |