From 63df857c2b4e82429a498608181a19d80101fd49 Mon Sep 17 00:00:00 2001 From: Evoke Zhang Date: Fri, 21 Dec 2018 11:41:54 +0800 Subject: [PATCH] backlight: ldim_global demo can't power on [1/1] PD#SWPL-3293 Problem: select UHD_2RG_LDIM model_name, then the backlight can't power on. Solution: fix ldim dev_drv add mistake Verify: r311 Change-Id: I7f86d6072524a2a6399a8259dae8c27a89a79b85 Signed-off-by: Evoke Zhang --- drivers/amlogic/media/vout/backlight/aml_ldim/ldim_dev_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/media/vout/backlight/aml_ldim/ldim_dev_drv.c b/drivers/amlogic/media/vout/backlight/aml_ldim/ldim_dev_drv.c index 037a3d0..455066d 100644 --- a/drivers/amlogic/media/vout/backlight/aml_ldim/ldim_dev_drv.c +++ b/drivers/amlogic/media/vout/backlight/aml_ldim/ldim_dev_drv.c @@ -1163,7 +1163,7 @@ static int ldim_dev_add_driver(struct aml_ldim_driver_s *ldim_drv) { struct ldim_dev_config_s *ldev_conf = ldim_drv->ldev_conf; int index = ldim_drv->dev_index; - int ret = -1; + int ret = 0; switch (ldim_dev_config.type) { case LDIM_DEV_TYPE_SPI: -- 2.7.4