ata: ahci_brcmstb: Fix misuse of IS_ENABLED

While IS_ENABLED() is perfectly fine for CONFIG_* symbols, it is not
for other symbols such as __BIG_ENDIAN that is provided directly by
the compiler.

Switch to use CONFIG_CPU_BIG_ENDIAN instead of __BIG_ENDIAN.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org

authored by Axel Lin and committed by Tejun Heo f9114d35 bb44e154

Changed files
+2 -2
drivers
+2 -2
drivers/ata/ahci_brcmstb.c
··· 92 92 * Other architectures (e.g., ARM) either do not support big endian, or 93 93 * else leave I/O in little endian mode. 94 94 */ 95 - if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(__BIG_ENDIAN)) 95 + if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) 96 96 return __raw_readl(addr); 97 97 else 98 98 return readl_relaxed(addr); ··· 101 101 static inline void brcm_sata_writereg(u32 val, void __iomem *addr) 102 102 { 103 103 /* See brcm_sata_readreg() comments */ 104 - if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(__BIG_ENDIAN)) 104 + if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) 105 105 __raw_writel(val, addr); 106 106 else 107 107 writel_relaxed(val, addr);