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 mfd: dbx500/abx500: root out hardcoded IRQ assignments 2014-03-04 08:58:11 +08:00
board-mop500-regulators.c ARM: ux500: Staticize ab8505_regulators 2014-07-10 10:37:43 +02:00
board-mop500-regulators.h ARM: ux500: regulators: Remove dead code for SD-card regulator 2013-12-13 10:30:20 +01:00
board-mop500.h ARM: ux500: Remove redundant board file for mmci platform data 2014-05-12 12:52:44 +02:00
cache-l2x0.c ARM: move heavy barrier support out of line 2015-07-25 15:28:05 +01:00
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 ARM: ux500: avoid warning in ux500_read_asicid 2013-06-04 11:21:58 +02:00
hotplug.c ARM: Remove __ref on hotplug cpu die path 2015-10-22 09:55:03 -07:00
id.c ARM: ux500: rename ux500_map_io 2015-05-18 15:08:04 +02:00
id.h ARM: ux500: de-globalize <mach/id.h> 2013-01-29 18:47:37 +01:00
Kconfig ARM: ux500: Enable Kconfig for the generic PM domain 2014-10-28 10:48:52 +01:00
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 ARM: make of_device_ids const 2015-02-19 09:44:25 +01:00
pm_domains.h ARM: ux500: Initial support for PM domains 2014-10-28 10:48:23 +01:00
setup.h ARM: ux500: simplify secondary CPU boot 2015-08-06 10:11:44 +02:00
ste-dma40-db8500.h dmaengine: ste_dma40: Amalgamate DMA source and destination channel numbers 2013-05-23 21:11:51 +02:00
timer.c clocksource: cosmetic: Drop OF 'dependency' from symbols 2015-10-01 02:18:39 +02:00