Commit 3ee08aea authored by David Brownell's avatar David Brownell Committed by Haavard Skinnemoen

tclib: Fix compile warnings

Does that have something analagous to this "remove warnings" patch?
Seems setup_clkevents() no longer needs a t0_clk parameter either...
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent 4d243f92
...@@ -180,10 +180,8 @@ static struct irqaction tc_irqaction = { ...@@ -180,10 +180,8 @@ static struct irqaction tc_irqaction = {
.handler = ch2_irq, .handler = ch2_irq,
}; };
static void __init setup_clkevents(struct atmel_tc *tc, static void __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx)
struct clk *t0_clk, int clk32k_divisor_idx)
{ {
struct platform_device *pdev = tc->pdev;
struct clk *t2_clk = tc->clk[2]; struct clk *t2_clk = tc->clk[2];
int irq = tc->irq[2]; int irq = tc->irq[2];
...@@ -205,8 +203,7 @@ static void __init setup_clkevents(struct atmel_tc *tc, ...@@ -205,8 +203,7 @@ static void __init setup_clkevents(struct atmel_tc *tc,
#else /* !CONFIG_GENERIC_CLOCKEVENTS */ #else /* !CONFIG_GENERIC_CLOCKEVENTS */
static void __init setup_clkevents(struct atmel_tc *tc, static void __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx)
struct clk *t0_clk, int clk32k_divisor_idx)
{ {
/* NOTHING */ /* NOTHING */
} }
...@@ -220,7 +217,7 @@ static int __init tcb_clksrc_init(void) ...@@ -220,7 +217,7 @@ static int __init tcb_clksrc_init(void)
struct platform_device *pdev; struct platform_device *pdev;
struct atmel_tc *tc; struct atmel_tc *tc;
struct clk *t0_clk, *t1_clk; struct clk *t0_clk;
u32 rate, divided_rate = 0; u32 rate, divided_rate = 0;
int best_divisor_idx = -1; int best_divisor_idx = -1;
int clk32k_divisor_idx = -1; int clk32k_divisor_idx = -1;
...@@ -298,7 +295,7 @@ static int __init tcb_clksrc_init(void) ...@@ -298,7 +295,7 @@ static int __init tcb_clksrc_init(void)
clocksource_register(&clksrc); clocksource_register(&clksrc);
/* channel 2: periodic and oneshot timer support */ /* channel 2: periodic and oneshot timer support */
setup_clkevents(tc, t0_clk, clk32k_divisor_idx); setup_clkevents(tc, clk32k_divisor_idx);
return 0; return 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