Message ID | 20211107144144.482969-1-dillon.minfei@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | media: stm32-dma2d: fix compile errors when W=1 | expand |
diff --git a/drivers/media/platform/stm32/dma2d/dma2d-hw.c b/drivers/media/platform/stm32/dma2d/dma2d-hw.c index 8c1c664ab13b..ea4cc84d8a39 100644 --- a/drivers/media/platform/stm32/dma2d/dma2d-hw.c +++ b/drivers/media/platform/stm32/dma2d/dma2d-hw.c @@ -26,16 +26,6 @@ static inline void reg_write(void __iomem *base, u32 reg, u32 val) writel_relaxed(val, base + reg); } -static inline void reg_set(void __iomem *base, u32 reg, u32 mask) -{ - reg_write(base, reg, reg_read(base, reg) | mask); -} - -static inline void reg_clear(void __iomem *base, u32 reg, u32 mask) -{ - reg_write(base, reg, reg_read(base, reg) & ~mask); -} - static inline void reg_update_bits(void __iomem *base, u32 reg, u32 mask, u32 val) {