disp: msm: dsi: fix kw issues in DSI
Change initializes uninitialized variables and handles null pointer references in DSI driver. Change-Id: I24200b4bafc5e0b223d64b1ad66fdebeeea37e99 Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
@@ -70,10 +70,12 @@ int dsi_pll_init(struct platform_device *pdev, struct dsi_pll_resource **pll)
|
||||
*pll = pll_res;
|
||||
|
||||
label = of_get_property(pdev->dev.of_node, "pll-label", NULL);
|
||||
if (!label)
|
||||
DSI_PLL_INFO(pll_res, "DSI pll label not specified\n");
|
||||
else
|
||||
DSI_PLL_INFO(pll_res, "DSI pll label = %s\n", label);
|
||||
if (!label) {
|
||||
DSI_PLL_ERR(pll_res, "DSI pll label not specified\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
DSI_PLL_INFO(pll_res, "DSI pll label = %s\n", label);
|
||||
|
||||
/**
|
||||
* Currently, Only supports 5nm PLL version. Will add
|
||||
|
Reference in New Issue
Block a user