diff options
| author | Jonas Schwöbel <[email protected]> | 2024-01-23 19:16:25 +0200 |
|---|---|---|
| committer | Anatolij Gustschin <[email protected]> | 2024-04-21 09:07:01 +0200 |
| commit | 6b4559ba6cc5e5aed51972ad35e44bfa80acea5d (patch) | |
| tree | 8f2246397e3a53978df8e31147899b2de06f7f5d /drivers | |
| parent | de903ac9bacaff912ea38145e3b48d0dbf44a1ce (diff) | |
video: tegra20: dc: enable backlight after DC is configured
The goal of panel_set_backlight() is to enable backlight. Hence,
it should be called at the probe end.
Signed-off-by: Jonas Schwöbel <[email protected]>
Signed-off-by: Svyatoslav Ryhel <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/tegra20/tegra-dc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c index 856d507cc5c..07d6ac9d718 100644 --- a/drivers/video/tegra20/tegra-dc.c +++ b/drivers/video/tegra20/tegra-dc.c @@ -397,12 +397,6 @@ static int tegra_lcd_probe(struct udevice *dev) return ret; } - ret = panel_set_backlight(priv->panel, BACKLIGHT_DEFAULT); - if (ret) { - debug("%s: Cannot set backlight to default, ret=%d\n", __func__, ret); - return ret; - } - mmu_set_region_dcache_behaviour(priv->frame_buffer, plat->size, DCACHE_WRITETHROUGH); @@ -415,7 +409,7 @@ static int tegra_lcd_probe(struct udevice *dev) debug("LCD frame buffer at %08x, size %x\n", priv->frame_buffer, plat->size); - return 0; + return panel_set_backlight(priv->panel, BACKLIGHT_DEFAULT); } static int tegra_lcd_of_to_plat(struct udevice *dev) |
