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

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: Haavard Skinnemoen <hskinnemoen@atmel.com>

authored by

David Brownell and committed by
Haavard Skinnemoen
3ee08aea 4d243f92

+4 -7
+4 -7
drivers/clocksource/tcb_clksrc.c
··· 180 180 .handler = ch2_irq, 181 181 }; 182 182 183 - static void __init setup_clkevents(struct atmel_tc *tc, 184 - struct clk *t0_clk, int clk32k_divisor_idx) 183 + static void __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) 185 184 { 186 - struct platform_device *pdev = tc->pdev; 187 185 struct clk *t2_clk = tc->clk[2]; 188 186 int irq = tc->irq[2]; 189 187 ··· 203 205 204 206 #else /* !CONFIG_GENERIC_CLOCKEVENTS */ 205 207 206 - static void __init setup_clkevents(struct atmel_tc *tc, 207 - struct clk *t0_clk, int clk32k_divisor_idx) 208 + static void __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx) 208 209 { 209 210 /* NOTHING */ 210 211 } ··· 217 220 218 221 struct platform_device *pdev; 219 222 struct atmel_tc *tc; 220 - struct clk *t0_clk, *t1_clk; 223 + struct clk *t0_clk; 221 224 u32 rate, divided_rate = 0; 222 225 int best_divisor_idx = -1; 223 226 int clk32k_divisor_idx = -1; ··· 295 298 clocksource_register(&clksrc); 296 299 297 300 /* channel 2: periodic and oneshot timer support */ 298 - setup_clkevents(tc, t0_clk, clk32k_divisor_idx); 301 + setup_clkevents(tc, clk32k_divisor_idx); 299 302 300 303 return 0; 301 304 }