aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorSenthilvadivu Guruswamy <svadivu@ti.com>2011-01-24 01:21:53 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-02-23 02:33:07 -0500
commit1dde9732d543f30d4297e8b74329c5ce797b5d16 (patch)
tree719abb0920d292ddae8680e6161ec078b8581c5b /arch/arm
parente04d9e1e4825cb3f6cfc238d7357ef084952eab1 (diff)
OMAP2, 3: DSS2: Use Regulator init with driver name
Use driver name in regulator inits needed for display instead of using device structure name. Reviewed-by: Kevin Hilman <khilman@ti.com> Tested-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com> Signed-off-by: Sumit Semwal <sumit.semwal@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/board-3430sdp.c11
-rw-r--r--arch/arm/mach-omap2/board-cm-t35.c12
-rw-r--r--arch/arm/mach-omap2/board-igep0020.c6
-rw-r--r--arch/arm/mach-omap2/board-omap3evm.c6
-rw-r--r--arch/arm/mach-omap2/board-omap3stalker.c12
5 files changed, 15 insertions, 32 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c
index 31085883199e..0f680cc4d9f3 100644
--- a/arch/arm/mach-omap2/board-3430sdp.c
+++ b/arch/arm/mach-omap2/board-3430sdp.c
@@ -315,10 +315,8 @@ static struct platform_device sdp3430_dss_device = {
315 }, 315 },
316}; 316};
317 317
318static struct regulator_consumer_supply sdp3430_vdda_dac_supply = { 318static struct regulator_consumer_supply sdp3430_vdda_dac_supply =
319 .supply = "vdda_dac", 319 REGULATOR_SUPPLY("vdda_dac", "omapdss");
320 .dev = &sdp3430_dss_device.dev,
321};
322 320
323static struct platform_device *sdp3430_devices[] __initdata = { 321static struct platform_device *sdp3430_devices[] __initdata = {
324 &sdp3430_dss_device, 322 &sdp3430_dss_device,
@@ -545,10 +543,7 @@ static struct regulator_init_data sdp3430_vdac = {
545 543
546/* VPLL2 for digital video outputs */ 544/* VPLL2 for digital video outputs */
547static struct regulator_consumer_supply sdp3430_vpll2_supplies[] = { 545static struct regulator_consumer_supply sdp3430_vpll2_supplies[] = {
548 { 546 REGULATOR_SUPPLY("vdds_dsi", "omapdss"),
549 .supply = "vdds_dsi",
550 .dev = &sdp3430_dss_device.dev,
551 }
552}; 547};
553 548
554static struct regulator_init_data sdp3430_vpll2 = { 549static struct regulator_init_data sdp3430_vpll2 = {
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c
index 9e4de92a5798..d650b7f8078b 100644
--- a/arch/arm/mach-omap2/board-cm-t35.c
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -495,15 +495,11 @@ static struct regulator_consumer_supply cm_t35_vsim_supply = {
495 .supply = "vmmc_aux", 495 .supply = "vmmc_aux",
496}; 496};
497 497
498static struct regulator_consumer_supply cm_t35_vdac_supply = { 498static struct regulator_consumer_supply cm_t35_vdac_supply =
499 .supply = "vdda_dac", 499 REGULATOR_SUPPLY("vdda_dac", "omapdss");
500 .dev = &cm_t35_dss_device.dev,
501};
502 500
503static struct regulator_consumer_supply cm_t35_vdvi_supply = { 501static struct regulator_consumer_supply cm_t35_vdvi_supply =
504 .supply = "vdvi", 502 REGULATOR_SUPPLY("vdvi", "omapdss");
505 .dev = &cm_t35_dss_device.dev,
506};
507 503
508/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ 504/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
509static struct regulator_init_data cm_t35_vmmc1 = { 505static struct regulator_init_data cm_t35_vmmc1 = {
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c
index dd0b1ac3b662..c235fa2a77ab 100644
--- a/arch/arm/mach-omap2/board-igep0020.c
+++ b/arch/arm/mach-omap2/board-igep0020.c
@@ -493,10 +493,8 @@ static struct platform_device igep2_dss_device = {
493 }, 493 },
494}; 494};
495 495
496static struct regulator_consumer_supply igep2_vpll2_supply = { 496static struct regulator_consumer_supply igep2_vpll2_supply =
497 .supply = "vdds_dsi", 497 REGULATOR_SUPPLY("vdds_dsi", "omapdss");
498 .dev = &igep2_dss_device.dev,
499};
500 498
501static struct regulator_init_data igep2_vpll2 = { 499static struct regulator_init_data igep2_vpll2 = {
502 .constraints = { 500 .constraints = {
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index c2a0fca4aa53..5e38da97decc 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -500,10 +500,8 @@ static struct twl4030_codec_data omap3evm_codec_data = {
500 .audio = &omap3evm_audio_data, 500 .audio = &omap3evm_audio_data,
501}; 501};
502 502
503static struct regulator_consumer_supply omap3_evm_vdda_dac_supply = { 503static struct regulator_consumer_supply omap3_evm_vdda_dac_supply =
504 .supply = "vdda_dac", 504 REGULATOR_SUPPLY("vdda_dac", "omapdss");
505 .dev = &omap3_evm_dss_device.dev,
506};
507 505
508/* VDAC for DSS driving S-Video */ 506/* VDAC for DSS driving S-Video */
509static struct regulator_init_data omap3_evm_vdac = { 507static struct regulator_init_data omap3_evm_vdac = {
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c
index 5d1ccef69164..9c63c37b500e 100644
--- a/arch/arm/mach-omap2/board-omap3stalker.c
+++ b/arch/arm/mach-omap2/board-omap3stalker.c
@@ -448,10 +448,8 @@ static struct twl4030_codec_data omap3stalker_codec_data = {
448 .audio = &omap3stalker_audio_data, 448 .audio = &omap3stalker_audio_data,
449}; 449};
450 450
451static struct regulator_consumer_supply omap3_stalker_vdda_dac_supply = { 451static struct regulator_consumer_supply omap3_stalker_vdda_dac_supply =
452 .supply = "vdda_dac", 452 REGULATOR_SUPPLY("vdda_dac", "omapdss");
453 .dev = &omap3_stalker_dss_device.dev,
454};
455 453
456/* VDAC for DSS driving S-Video */ 454/* VDAC for DSS driving S-Video */
457static struct regulator_init_data omap3_stalker_vdac = { 455static struct regulator_init_data omap3_stalker_vdac = {
@@ -469,10 +467,8 @@ static struct regulator_init_data omap3_stalker_vdac = {
469}; 467};
470 468
471/* VPLL2 for digital video outputs */ 469/* VPLL2 for digital video outputs */
472static struct regulator_consumer_supply omap3_stalker_vpll2_supply = { 470static struct regulator_consumer_supply omap3_stalker_vpll2_supply =
473 .supply = "vdds_dsi", 471 REGULATOR_SUPPLY("vdds_dsi", "omapdss");
474 .dev = &omap3_stalker_lcd_device.dev,
475};
476 472
477static struct regulator_init_data omap3_stalker_vpll2 = { 473static struct regulator_init_data omap3_stalker_vpll2 = {
478 .constraints = { 474 .constraints = {