Commit 27d4cdca authored by Lee Jones's avatar Lee Jones Committed by Olof Johansson

ARM: ux500: Rid ignored return value of regulator_enable() compiler warning

arch/arm/mach-ux500/board-mop500.c: In function ‘mop500_prox_activate’:
arch/arm/mach-ux500/board-mop500.c:406:18: warning: ignoring return value of
        ‘regulator_enable’, declared with attribute warn_unused_result
        [-Wunused-result]
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 33c8abce
...@@ -403,8 +403,8 @@ static int mop500_prox_activate(struct device *dev) ...@@ -403,8 +403,8 @@ static int mop500_prox_activate(struct device *dev)
"no regulator\n"); "no regulator\n");
return PTR_ERR(prox_regulator); return PTR_ERR(prox_regulator);
} }
regulator_enable(prox_regulator);
return 0; return regulator_enable(prox_regulator);
} }
static void mop500_prox_deactivate(struct device *dev) static void mop500_prox_deactivate(struct device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment