瀏覽代碼

thermal: sti: Add parentheses around bridge->ops->regmap_init call

regmap_init(...) is a macro since commit
"regmap: Use different lockdep class for each regmap init call".
That same name is used as a function pointer: prevent its expansion
by adding parentheses around the function pointer.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Nicolas Boichat 10 年之前
父節點
當前提交
331a5fc9f2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/thermal/st/st_thermal.c

+ 1 - 1
drivers/thermal/st/st_thermal.c

@@ -214,7 +214,7 @@ int st_thermal_register(struct platform_device *pdev,
 
 	sensor->ops = sensor->cdata->ops;
 
-	ret = sensor->ops->regmap_init(sensor);
+	ret = (sensor->ops->regmap_init)(sensor);
 	if (ret)
 		return ret;