summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/of_dc.c
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2018-03-27 16:36:23 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-03-28 18:40:19 +0200
commite81dd8a3500fea94ce8786554cbc29bc6b2a9207 (patch)
treed02226e829a0065c863a495067e3a7f07c540c38 /drivers/video/tegra/dc/of_dc.c
parentaaa7a0c4587331ec1d92bf12c54b2928dc3cd602 (diff)
apalis-tk1: handle backlight in the device treeApalis-TK1_LXDE-Image_2.8b2.97-20180331toradex_tk1_l4t_r21.6
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'drivers/video/tegra/dc/of_dc.c')
-rw-r--r--drivers/video/tegra/dc/of_dc.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/video/tegra/dc/of_dc.c b/drivers/video/tegra/dc/of_dc.c
index ee1dc1f81f87..1f38c3e8e36b 100644
--- a/drivers/video/tegra/dc/of_dc.c
+++ b/drivers/video/tegra/dc/of_dc.c
@@ -73,7 +73,6 @@ static struct regulator *of_hdmi_vddio;
static struct regulator *of_hdmi_reg;
static struct regulator *of_hdmi_pll;
static struct regulator *of_lvds_dp_reg;
-static struct regulator *of_lvds_bl_reg;
#ifdef CONFIG_TEGRA_DC_CMU
static struct tegra_dc_cmu default_cmu = {
@@ -1647,21 +1646,7 @@ static int dc_lvds_enable(struct device *dev)
of_lvds_dp_reg = NULL;
return ret;
}
-
- if (!of_lvds_bl_reg) {
- of_lvds_bl_reg = regulator_get(dev, "vdd_lcd_bl");
- if (IS_ERR_OR_NULL(of_lvds_bl_reg)) {
- pr_err("lvds: couldn't get regulator vdd_lcd_bl\n");
- of_lvds_bl_reg = NULL;
- }
- }
-
- if (of_lvds_bl_reg) {
- if (regulator_enable(of_lvds_bl_reg) < 0)
- pr_err("vdd_lcd_bl failed to enable\n");
- }
-
- return 0;
+ return ret;
}
static int dc_lvds_disable(void)
@@ -1671,11 +1656,6 @@ static int dc_lvds_disable(void)
regulator_put(of_lvds_dp_reg);
of_lvds_dp_reg = NULL;
}
- if (of_lvds_bl_reg) {
- regulator_disable(of_lvds_bl_reg);
- regulator_put(of_lvds_bl_reg);
- of_lvds_bl_reg = NULL;
- }
return 0;
}