Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] vpdma: remove vpdma_enable_list_notify_irq()

Despite being exported, there's no prototype for it at the
headers, as warned by sparse:

Fixes this sparse warning:
drivers/media/platform/ti-vpe/vpdma.c:1000:6: warning: no previous prototype for 'vpdma_enable_list_notify_irq' [-Wmissing-prototypes]
void vpdma_enable_list_notify_irq(struct vpdma_data *vpdma, int irq_num,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Worse than that, it is not even used, as making it static it
would produce:

drivers/media/platform/ti-vpe/vpdma.c:1000:13: warning: 'vpdma_enable_list_notify_irq' defined but not used [-Wunused-function]
static void vpdma_enable_list_notify_irq(struct vpdma_data *vpdma, int irq_num,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~

So, let's just get rid of the dead code. If needed in the future,
someone could re-add it.

Cc: Benoit Parrot <bparrot@ti.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

-16
-16
drivers/media/platform/ti-vpe/vpdma.c
··· 996 996 } 997 997 EXPORT_SYMBOL(vpdma_enable_list_complete_irq); 998 998 999 - /* set or clear the mask for list complete interrupt */ 1000 - void vpdma_enable_list_notify_irq(struct vpdma_data *vpdma, int irq_num, 1001 - int list_num, bool enable) 1002 - { 1003 - u32 reg_addr = VPDMA_INT_LIST0_MASK + VPDMA_INTX_OFFSET * irq_num; 1004 - u32 val; 1005 - 1006 - val = read_reg(vpdma, reg_addr); 1007 - if (enable) 1008 - val |= (1 << ((list_num * 2) + 1)); 1009 - else 1010 - val &= ~(1 << ((list_num * 2) + 1)); 1011 - write_reg(vpdma, reg_addr, val); 1012 - } 1013 - EXPORT_SYMBOL(vpdma_enable_list_notify_irq); 1014 - 1015 999 /* get the LIST_STAT register */ 1016 1000 unsigned int vpdma_get_list_stat(struct vpdma_data *vpdma, int irq_num) 1017 1001 {