diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2015-07-08 02:30:17 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-07 09:50:59 -0400 |
commit | 331a5fc9f2ed28033ddda89acb2a9b43592a545d (patch) | |
tree | 69d85942c77bd42bc11e9ac4c8ab6db43a307e2b /drivers/thermal/st | |
parent | bbb4d872c795ab3a1c0610f69d05fcd93aef83f6 (diff) |
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>
Diffstat (limited to 'drivers/thermal/st')
-rw-r--r-- | drivers/thermal/st/st_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
214 | 214 | ||
215 | sensor->ops = sensor->cdata->ops; | 215 | sensor->ops = sensor->cdata->ops; |
216 | 216 | ||
217 | ret = sensor->ops->regmap_init(sensor); | 217 | ret = (sensor->ops->regmap_init)(sensor); |
218 | if (ret) | 218 | if (ret) |
219 | return ret; | 219 | return ret; |
220 | 220 | ||