diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-01-02 12:54:31 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-03-19 11:03:06 +0200 |
commit | e6fa68ba82959bd2468271788d89e0fdb2f781e4 (patch) | |
tree | 0619504df7c461d5d1752e72aeb666662c86820d /drivers/video/omap2/dss/hdmi4.c | |
parent | 4e7470ddca671aee2f5d11ba68573c94feddc5c2 (diff) | |
download | op-kernel-dev-e6fa68ba82959bd2468271788d89e0fdb2f781e4.zip op-kernel-dev-e6fa68ba82959bd2468271788d89e0fdb2f781e4.tar.gz |
OMAPDSS: Improve regulator names for DT
The regulator names used for DSS components are somewhat ugly for DT
use. As we're just adding DT support, it's simple to change the
regulator names.
This patch makes the DSS driver get the regulators with somewhat cleaner
names when bootin with DT. For example, this allows us to define HDMI's
VDDA regulator in the DT data as:
vdda-supply = <...>;
instead of
vdda_hdmi_dac-supply = <...>;
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/hdmi4.c')
-rw-r--r-- | drivers/video/omap2/dss/hdmi4.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/hdmi4.c b/drivers/video/omap2/dss/hdmi4.c index 4a74538..ba6f025 100644 --- a/drivers/video/omap2/dss/hdmi4.c +++ b/drivers/video/omap2/dss/hdmi4.c @@ -88,7 +88,10 @@ static int hdmi_init_regulator(void) if (hdmi.vdda_hdmi_dac_reg != NULL) return 0; - reg = devm_regulator_get(&hdmi.pdev->dev, "vdda_hdmi_dac"); + if (hdmi.pdev->dev.of_node) + reg = devm_regulator_get(&hdmi.pdev->dev, "vdda"); + else + reg = devm_regulator_get(&hdmi.pdev->dev, "vdda_hdmi_dac"); /* DT HACK: try VDAC to make omapdss work for o4 sdp/panda */ if (IS_ERR(reg)) |