diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2015-07-08 14:30:17 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-07 14:50:59 +0100 |
commit | 331a5fc9f2ed28033ddda89acb2a9b43592a545d (patch) | |
tree | 69d85942c77bd42bc11e9ac4c8ab6db43a307e2b | |
parent | bbb4d872c795ab3a1c0610f69d05fcd93aef83f6 (diff) | |
download | lwn-331a5fc9f2ed28033ddda89acb2a9b43592a545d.tar.gz lwn-331a5fc9f2ed28033ddda89acb2a9b43592a545d.zip |
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>
-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, sensor->ops = sensor->cdata->ops; - ret = sensor->ops->regmap_init(sensor); + ret = (sensor->ops->regmap_init)(sensor); if (ret) return ret; |