From cd778f698821e409194d3112004a2b2fe4bed133 Mon Sep 17 00:00:00 2001 From: Govindaraj Rajagopal Date: Thu, 30 Jul 2020 09:46:52 +0530 Subject: [PATCH] msm: vidc: always read fuse value irrespective of sku-index [1] Only one vidc node is maintained, so "sku-index" entry is removed in dtsi. [2] In video driver, always read fuse value if efuse_data entry is populated Change-Id: I86b8c38f1e71491678b54a11783292e1281f90d3 Signed-off-by: Govindaraj Rajagopal --- msm/vidc/msm_vidc_platform.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/msm/vidc/msm_vidc_platform.c b/msm/vidc/msm_vidc_platform.c index 473c3e934208..a08af134f47d 100644 --- a/msm/vidc/msm_vidc_platform.c +++ b/msm/vidc/msm_vidc_platform.c @@ -1625,11 +1625,9 @@ void *vidc_get_drv_data(struct device *dev) goto exit; /* Check for sku version */ - if (of_find_property(dev->of_node, "sku-index", NULL)) { - rc = msm_vidc_read_efuse(driver_data, dev); - if (rc) - goto exit; - } + rc = msm_vidc_read_efuse(driver_data, dev); + if (rc) + goto exit; if (!strcmp(match->compatible, "qcom,lahaina-vidc")) { ddr_type = of_fdt_get_ddrtype();