OpenCloudOS-Kernel/arch/arm/mach-ux500
Arnd Bergmann f0e8faa7a5 ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation
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>
2017-01-12 13:25:39 +01:00
..
Kconfig ARM: do away with ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB 2016-06-03 12:18:13 -07:00
Makefile ARM: ux500: consolidate base platform files 2016-07-12 11:24:09 +02:00
board-mop500-audio.c mfd: dbx500/abx500: root out hardcoded IRQ assignments 2014-03-04 08:58:11 +08:00
board-mop500.h ARM: ux500: Remove redundant board file for mmci platform data 2014-05-12 12:52:44 +02:00
cpu-db8500.c ARM: ux500: consolidate base platform files 2016-07-12 11:24:09 +02: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
platsmp.c ARM: ux500: consolidate soc_device code in id.c 2016-07-12 11:24:08 +02:00
pm.c ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation 2017-01-12 13:25:39 +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: consolidate base platform files 2016-07-12 11:24:09 +02:00
ste-dma40-db8500.h dmaengine: ste_dma40: Amalgamate DMA source and destination channel numbers 2013-05-23 21:11:51 +02:00