drivers: thermal: Update logic in sdpm driver to handle available clocks
SDPM driver probing is failed if any of the clocks configured in devicetree is not available. Update sdpm driver probe logic to proceed with the available clocks. Change-Id: I8e66fb9028fa3f2f4f1b45bf9c2cc16e7e6950a9 Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
This commit is contained in:
parent
2f252c6e34
commit
c07848e678
@ -216,8 +216,11 @@ static int sdpm_clk_device_probe(struct platform_device *pdev)
|
||||
|
||||
sdpm_clk->clk_data[idx].clk = devm_clk_get(dev,
|
||||
sdpm_clk->clk_data[idx].clock_name);
|
||||
if (IS_ERR(sdpm_clk->clk_data[idx].clk))
|
||||
return PTR_ERR(sdpm_clk->clk_data[idx].clk);
|
||||
if (IS_ERR(sdpm_clk->clk_data[idx].clk)) {
|
||||
sdpm_clk->clk_data[idx].clk = NULL;
|
||||
sdpm_clk->clk_data[idx].clock_name = NULL;
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = of_property_read_u32_index(dev_node, "csr-id", idx, &csr);
|
||||
if (ret < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user