diff options
Diffstat (limited to 'kernel/drivers/net/ethernet/hisilicon')
-rw-r--r-- | kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h b/kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h index bdbd80423..9ff2881f9 100644 --- a/kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h +++ b/kernel/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h @@ -900,9 +900,7 @@ static inline void dsaf_write_reg(void __iomem *base, u32 reg, u32 value) { - u8 __iomem *reg_addr = ACCESS_ONCE(base); - - writel(value, reg_addr + reg); + writel(value, base + reg); } #define dsaf_write_dev(a, reg, value) \ @@ -910,9 +908,7 @@ static inline void dsaf_write_reg(void __iomem *base, u32 reg, u32 value) static inline u32 dsaf_read_reg(u8 __iomem *base, u32 reg) { - u8 __iomem *reg_addr = ACCESS_ONCE(base); - - return readl(reg_addr + reg); + return readl(base + reg); } #define dsaf_read_dev(a, reg) \ |