diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-10 14:05:10 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-04-04 09:55:17 +0300 |
commit | 931d4bd664786f5a3b1ea83f84ba9d455e341c9b (patch) | |
tree | 045bc4e3f8032bf3bb363df808ebee2bd26f6d4a /drivers/video/omap2/dss/dsi.c | |
parent | 703cc5df19d5dfaeaab8695eba8ca436ca3a8b6f (diff) | |
download | op-kernel-dev-931d4bd664786f5a3b1ea83f84ba9d455e341c9b.zip op-kernel-dev-931d4bd664786f5a3b1ea83f84ba9d455e341c9b.tar.gz |
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>
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index f3e4e46..121d104 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) if (dsi->vdds_dsi_reg != NULL) return 0; - if (dsi->pdev->dev.of_node) - vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "vdd"); - else - vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "vdds_dsi"); - - /* DT HACK: try VCXIO to make omapdss work for o4 sdp/panda */ - if (IS_ERR(vdds_dsi)) - vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "VCXIO"); + vdds_dsi = devm_regulator_get(&dsi->pdev->dev, "vdd"); if (IS_ERR(vdds_dsi)) { if (PTR_ERR(vdds_dsi) != -EPROBE_DEFER) - DSSERR("can't get VDDS_DSI regulator\n"); + DSSERR("can't get DSI VDD regulator\n"); return PTR_ERR(vdds_dsi); } |