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 <evoke.zhang@amlogic.com>
This commit is contained in:
Evoke Zhang
2018-12-21 11:41:54 +08:00
committed by Jianxin Pan
parent 9d7934185a
commit 63df857c2b

View 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: