thermal: sti: Add parentheses around bridge->ops->regmap_init call
authorNicolas Boichat <drinkcat@chromium.org>
Wed, 8 Jul 2015 06:30:17 +0000 (14:30 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 7 Aug 2015 13:50:59 +0000 (14:50 +0100)
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>
drivers/thermal/st/st_thermal.c

index 76c515dd802b489116dd73f342520dff8326a67e..88c759d746c3f6837b0c81075443ef5ae0db0985 100644 (file)
@@ -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;