Browse Source

Merge "clk: qcom: debugcc-neo: Don't register debug mux if regmap is NULL"

qctecmdr 3 years ago
parent
commit
9590b9c31c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/clk/qcom/debugcc-neo.c

+ 3 - 0
drivers/clk/qcom/debugcc-neo.c

@@ -1394,6 +1394,9 @@ static int clk_debug_neo_probe(struct platform_device *pdev)
 	}
 
 	for (i = 0; i < ARRAY_SIZE(mux_list); i++) {
+		if (!mux_list[i].mux->regmap)
+			continue;
+
 		ret = devm_clk_register_debug_mux(&pdev->dev, mux_list[i].mux);
 		if (ret) {
 			dev_err(&pdev->dev, "Unable to register mux clk %s, err:(%d)\n",