Blackfin: fix unused clk var warning
authorMike Frysinger <vapier@gentoo.org>
Tue, 1 May 2012 04:47:37 +0000 (00:47 -0400)
committerBob Liu <lliubbo@gmail.com>
Mon, 21 May 2012 06:54:37 +0000 (14:54 +0800)
This is only used on BF60x code (so this patch should get squashed into
the original one that added it).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/kernel/setup.c

index c113cfa459a7732c850478982556280d81c2e5b0..ed041541ea193a1f3f493f1f84208d8ec9cd1b03 100644 (file)
@@ -892,7 +892,9 @@ void __init setup_arch(char **cmdline_p)
 {
        u32 mmr;
        unsigned long sclk, cclk;
+#ifdef CONFIG_BF60x
        struct clk *clk;
+#endif
 
        native_machine_early_platform_add_devices();