+2
-2
drivers/ata/ahci_brcmstb.c
+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);