disp: msm: dsi: Handle absence of dsi select clocks in device-tree

Initialize pll clocks to NULL and warn if dsi select clocks are not
defined in device-tree.

Change-Id: If831692021278b020d49c06c3bb15d631c0376a4
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
This commit is contained in:
Srihitha Tangudu 2022-04-22 13:31:44 +05:30
commit 1d01b6c5e1

View file

@ -3558,6 +3558,12 @@ static int dsi_display_clocks_init(struct dsi_display *display)
num_clk = dsi_display_get_clocks_count(display, dsi_clock_name);
if (num_clk <= 0) {
rc = num_clk;
DSI_WARN("failed to read %s, rc = %d\n", dsi_clock_name, num_clk);
goto error;
}
DSI_DEBUG("clk count=%d\n", num_clk);
for (i = 0; i < num_clk; i++) {