From: Jonas Schwöbel Date: Tue, 23 Jan 2024 17:16:25 +0000 (+0200) Subject: video: tegra20: dc: enable backlight after DC is configured X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6b4559ba6cc5e5aed51972ad35e44bfa80acea5d;p=u-boot.git 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 Signed-off-by: Svyatoslav Ryhel Reviewed-by: Thierry Reding --- diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c index 856d507cc5..07d6ac9d71 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)