]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: s3c: simplify s3c_irqwake_{e,}intallow definition
authorArnd Bergmann <arnd@arndb.de>
Wed, 16 Dec 2015 17:07:49 +0000 (18:07 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 31 Dec 2015 16:26:18 +0000 (17:26 +0100)
commit013da0054f1f72e8a6d510951ac46c4e8c8ff6e2
tree5ea598145cd82a8c3d37870562fa7e74c0d349ab
parente86f79b79a5168a041f9e2bd7a86a6c1052e06b7
ARM: s3c: simplify s3c_irqwake_{e,}intallow definition

For a long time, gcc has warned about odd configurations on s3c64xx:

In file included from arch/arm/plat-samsung/pm.c:34:0:
arch/arm/mach-s3c64xx/include/mach/pm-core.h:61:0: warning: "s3c_irqwake_eintallow" redefined
 #define s3c_irqwake_eintallow ((1 << 28) - 1)
In file included from arch/arm/plat-samsung/pm.c:33:0:
arch/arm/plat-samsung/include/plat/pm.h:49:0: note: this is the location of the previous definition
 #define s3c_irqwake_eintallow 0

The definitions of s3c_irqwake_intallow and s3c_irqwake_eintallow are a
bit consistent between the various platforms. Things have become easier
now that it's only s3c24xx and s3c64xx that use them at all, so I've tried
to rearrange the definitions to make it more obvious what is going on.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/mach-s3c24xx/include/mach/pm-core.h
arch/arm/mach-s3c24xx/irq-pm.c
arch/arm/mach-s3c64xx/include/mach/pm-core.h
arch/arm/plat-samsung/include/plat/pm.h