android_kernel_oneplus_msm8998/arch/arm/mach-ux500
Arnd Bergmann baa2610c49 ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation
commit f0e8faa7a5e894b0fc99d24be1b18685a92ea466 upstream.

This function clearly never worked and always returns true,
as pointed out by gcc-7:

arch/arm/mach-ux500/pm.c: In function 'prcmu_is_cpu_in_wfi':
arch/arm/mach-ux500/pm.c:137:212: error: ?:
using integer constants in boolean context, the expression
will always evaluate to 'true' [-Werror=int-in-bool-context]

With the added braces, the condition actually makes sense.

Fixes: 34fe6f107e ("mfd : Check if the other db8500 core is in WFI")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-26 08:23:49 +01:00
..
board-mop500-audio.c
board-mop500-regulators.c
board-mop500-regulators.h
board-mop500.h
cache-l2x0.c
cpu-db8500.c Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm 2015-09-03 16:27:01 -07:00
cpu.c Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-09-01 14:33:35 -07:00
db8500-regs.h
hotplug.c ARM: Remove __ref on hotplug cpu die path 2015-10-22 09:55:03 -07:00
id.c
id.h
Kconfig
Makefile ARM: ux500: simplify secondary CPU boot 2015-08-06 10:11:44 +02:00
Makefile.boot
platsmp.c ARM: ux500: simplify secondary CPU boot 2015-08-06 10:11:44 +02:00
pm.c ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation 2017-01-26 08:23:49 +01:00
pm_domains.c
pm_domains.h
setup.h ARM: ux500: simplify secondary CPU boot 2015-08-06 10:11:44 +02:00
ste-dma40-db8500.h
timer.c clocksource: cosmetic: Drop OF 'dependency' from symbols 2015-10-01 02:18:39 +02:00