mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
c714fc0871
commit
1d01b6c5e1
1 changed files with 6 additions and 0 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue