mfd: vexpress: Add parentheses around bridge->ops->regmap_init call
authorNicolas Boichat <drinkcat@chromium.org>
Wed, 8 Jul 2015 06:30:16 +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/bus/vexpress-config.c

index a64763b6b5fd1ee1e38418bd931f9d7e2066dc4a..6575c0fe6a4ea3a1e3bc1bae99010eefd9d7ff94 100644 (file)
@@ -107,7 +107,7 @@ struct regmap *devm_regmap_init_vexpress_config(struct device *dev)
        if (!res)
                return ERR_PTR(-ENOMEM);
 
-       regmap = bridge->ops->regmap_init(dev, bridge->context);
+       regmap = (bridge->ops->regmap_init)(dev, bridge->context);
        if (IS_ERR(regmap)) {
                devres_free(res);
                return regmap;