aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-06-10 07:05:10 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-04-04 02:55:17 -0400
commit931d4bd664786f5a3b1ea83f84ba9d455e341c9b (patch)
tree045bc4e3f8032bf3bb363df808ebee2bd26f6d4a
parent703cc5df19d5dfaeaab8695eba8ca436ca3a8b6f (diff)
OMAPDSS: remove DT hacks for regulators
For booting Panda and 4430SDP with DT, while DSS did not support DT, we had to had small hacks in the omapdss driver to get the regulators. With DT now supported in DSS, we can remove those hacks. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap2/dss/dsi.c11
-rw-r--r--drivers/video/omap2/dss/hdmi4.c11
2 files changed, 4 insertions, 18 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index f3e4e468b49a..121d1049d0bc 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -1160,18 +1160,11 @@ static int dsi_regulator_init(struct platform_device *dsidev)
1160 if (dsi->vdds_dsi_reg != NULL) 1160 if (dsi->vdds_dsi_reg != NULL)
1161 return 0; 1161 return 0;
1162 1162
1163 if (dsi->pdev->dev.of_node) 1163 vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "vdd");
1164 vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "vdd");
1165 else
1166 vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "vdds_dsi");
1167
1168 /* DT HACK: try VCXIO to make omapdss work for o4 sdp/panda */
1169 if (IS_ERR(vdds_dsi))
1170 vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "VCXIO");
1171 1164
1172 if (IS_ERR(vdds_dsi)) { 1165 if (IS_ERR(vdds_dsi)) {
1173 if (PTR_ERR(vdds_dsi) != -EPROBE_DEFER) 1166 if (PTR_ERR(vdds_dsi) != -EPROBE_DEFER)
1174 DSSERR("can't get VDDS_DSI regulator\n"); 1167 DSSERR("can't get DSI VDD regulator\n");
1175 return PTR_ERR(vdds_dsi); 1168 return PTR_ERR(vdds_dsi);
1176 } 1169 }
1177 1170
diff --git a/drivers/video/omap2/dss/hdmi4.c b/drivers/video/omap2/dss/hdmi4.c
index e9c3d9e6d450..f5f7944a1fd1 100644
--- a/drivers/video/omap2/dss/hdmi4.c
+++ b/drivers/video/omap2/dss/hdmi4.c
@@ -88,18 +88,11 @@ static int hdmi_init_regulator(void)
88 if (hdmi.vdda_hdmi_dac_reg != NULL) 88 if (hdmi.vdda_hdmi_dac_reg != NULL)
89 return 0; 89 return 0;
90 90
91 if (hdmi.pdev->dev.of_node) 91 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda");
92 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda");
93 else
94 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda_hdmi_dac");
95
96 /* DT HACK: try VDAC to make omapdss work for o4 sdp/panda */
97 if (IS_ERR(reg))
98 reg = devm_regulator_get(&hdmi.pdev->dev, "VDAC");
99 92
100 if (IS_ERR(reg)) { 93 if (IS_ERR(reg)) {
101 if (PTR_ERR(reg) != -EPROBE_DEFER) 94 if (PTR_ERR(reg) != -EPROBE_DEFER)
102 DSSERR("can't get VDDA_HDMI_DAC regulator\n"); 95 DSSERR("can't get VDDA regulator\n");
103 return PTR_ERR(reg); 96 return PTR_ERR(reg);
104 } 97 }
105 98