backlight: ldim_global demo can't power on [1/1]
authorEvoke Zhang <evoke.zhang@amlogic.com>
Fri, 21 Dec 2018 03:41:54 +0000 (11:41 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 26 Dec 2018 11:05:42 +0000 (03:05 -0800)
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 <evoke.zhang@amlogic.com>
drivers/amlogic/media/vout/backlight/aml_ldim/ldim_dev_drv.c

index 037a3d0..455066d 100644 (file)
@@ -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: