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

MIPS: ralink: Remove unused timer functions

The functions were originally used for the module unload path,
but are not referenced any more and just cause warnings:

arch/mips/ralink/timer.c:104:13: error: 'rt_timer_disable' defined but not used [-Werror=unused-function]
arch/mips/ralink/timer.c:74:13: error: 'rt_timer_free' defined but not used [-Werror=unused-function]

Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Fixes: 62ee73d284e7 ("MIPS: ralink: Make timer explicitly non-modular")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: John Crispin <john@phrozen.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15041/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Arnd Bergmann and committed by
Ralf Baechle
d92240d1 98ea51cb

-14
-14
arch/mips/ralink/timer.c
··· 71 71 return err; 72 72 } 73 73 74 - static void rt_timer_free(struct rt_timer *rt) 75 - { 76 - free_irq(rt->irq, rt); 77 - } 78 - 79 74 static int rt_timer_config(struct rt_timer *rt, unsigned long divisor) 80 75 { 81 76 if (rt->timer_freq < divisor) ··· 94 99 rt_timer_w32(rt, TIMER_REG_TMR0CTL, t); 95 100 96 101 return 0; 97 - } 98 - 99 - static void rt_timer_disable(struct rt_timer *rt) 100 - { 101 - u32 t; 102 - 103 - t = rt_timer_r32(rt, TIMER_REG_TMR0CTL); 104 - t &= ~TMR0CTL_ENABLE; 105 - rt_timer_w32(rt, TIMER_REG_TMR0CTL, t); 106 102 } 107 103 108 104 static int rt_timer_probe(struct platform_device *pdev)