Skip to content

Commit

Permalink
ARM: ux500: Rid ignored return value of regulator_enable() compiler w…
Browse files Browse the repository at this point in the history
…arning

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: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Lee Jones authored and Olof Johansson committed May 9, 2013
1 parent 33c8abc commit 27d4cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-ux500/board-mop500.c
Original file line number Diff line number Diff line change
@@ -403,8 +403,8 @@ static int mop500_prox_activate(struct device *dev)
"no regulator\n");
return PTR_ERR(prox_regulator);
}
regulator_enable(prox_regulator);
return 0;

return regulator_enable(prox_regulator);
}

static void mop500_prox_deactivate(struct device *dev)

0 comments on commit 27d4cdc

Please sign in to comment.