From: Lee Jones Date: Thu, 2 May 2013 15:48:07 +0000 (+0100) Subject: ARM: ux500: Rid ignored return value of regulator_enable() compiler warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27d4cdca7500ddc42002b96c0ea818e6da61ad91;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Lee Jones Signed-off-by: Linus Walleij Signed-off-by: Olof Johansson --- diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index a15dd6b63a8f..3cd555ac6d0a 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -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)