From: Nicolas Boichat Date: Wed, 8 Jul 2015 06:30:17 +0000 (+0800) Subject: thermal: sti: Add parentheses around bridge->ops->regmap_init call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=331a5fc9f2ed28033ddda89acb2a9b43592a545d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/thermal/st/st_thermal.c b/drivers/thermal/st/st_thermal.c index 76c515dd802b..88c759d746c3 100644 --- a/drivers/thermal/st/st_thermal.c +++ b/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;