diff options
| -rw-r--r-- | drivers/ata/ahci_brcmstb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/ahci_brcmstb.c b/drivers/ata/ahci_brcmstb.c index 42b6cf4a05c8..14b7305d2ba0 100644 --- a/drivers/ata/ahci_brcmstb.c +++ b/drivers/ata/ahci_brcmstb.c | |||
| @@ -92,7 +92,7 @@ static inline u32 brcm_sata_readreg(void __iomem *addr) | |||
| 92 | * Other architectures (e.g., ARM) either do not support big endian, or | 92 | * Other architectures (e.g., ARM) either do not support big endian, or |
| 93 | * else leave I/O in little endian mode. | 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 | return __raw_readl(addr); | 96 | return __raw_readl(addr); |
| 97 | else | 97 | else |
| 98 | return readl_relaxed(addr); | 98 | return readl_relaxed(addr); |
| @@ -101,7 +101,7 @@ static inline u32 brcm_sata_readreg(void __iomem *addr) | |||
| 101 | static inline void brcm_sata_writereg(u32 val, void __iomem *addr) | 101 | static inline void brcm_sata_writereg(u32 val, void __iomem *addr) |
| 102 | { | 102 | { |
| 103 | /* See brcm_sata_readreg() comments */ | 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 | __raw_writel(val, addr); | 105 | __raw_writel(val, addr); |
| 106 | else | 106 | else |
| 107 | writel_relaxed(val, addr); | 107 | writel_relaxed(val, addr); |
