Commit dd2419e1 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

MIPS: ralink: Remove unused timer functions

commit d92240d1 upstream.

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: 62ee73d2 ("MIPS: ralink: Make timer explicitly non-modular")
Signed-off-by: default avatarArnd 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: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3406418
...@@ -71,11 +71,6 @@ static int rt_timer_request(struct rt_timer *rt) ...@@ -71,11 +71,6 @@ static int rt_timer_request(struct rt_timer *rt)
return err; return err;
} }
static void rt_timer_free(struct rt_timer *rt)
{
free_irq(rt->irq, rt);
}
static int rt_timer_config(struct rt_timer *rt, unsigned long divisor) static int rt_timer_config(struct rt_timer *rt, unsigned long divisor)
{ {
if (rt->timer_freq < divisor) if (rt->timer_freq < divisor)
...@@ -101,15 +96,6 @@ static int rt_timer_enable(struct rt_timer *rt) ...@@ -101,15 +96,6 @@ static int rt_timer_enable(struct rt_timer *rt)
return 0; return 0;
} }
static void rt_timer_disable(struct rt_timer *rt)
{
u32 t;
t = rt_timer_r32(rt, TIMER_REG_TMR0CTL);
t &= ~TMR0CTL_ENABLE;
rt_timer_w32(rt, TIMER_REG_TMR0CTL, t);
}
static int rt_timer_probe(struct platform_device *pdev) static int rt_timer_probe(struct platform_device *pdev)
{ {
struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment