This patch removes two unused macros IPU_INT_CTRL_IRQ(irq)
and IPU_INT_STAT_IRQ(irq) to save two lines of code. The
existing another two macros IPUIRQ_2_STATREG(irq) and
IPUIRQ_2_CTRLREG(irq) are the surrogates for them.
Reviewed-by: Robby Cai <R63905@freescale.com>
Cc: Oliver Brown <oliver.brown@freescale.com>
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(0x0160/4 + (ch / 32)); })
#define IPU_INT_CTRL(n) (0x003C/4 + ((n) - 1))
-#define IPU_INT_CTRL_IRQ(irq) IPU_INT_CTRL(((irq) / 32))
-#define IPU_INT_STAT_IRQ(irq) IPU_INT_STAT(((irq) / 32))
#define IPU_INT_STAT(n) ({g_ipu_hw_rev >= 2 ? \
(0x0200/4 + ((n) - 1)) : \
(0x00E8/4 + ((n) - 1)); })