]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Remove unused and broken core_l3_ck clk_get from board-3430sdp.c
authorPaul Walmsley <paul@pwsan.com>
Sat, 17 Nov 2007 00:14:49 +0000 (17:14 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 23 Nov 2007 20:28:57 +0000 (12:28 -0800)
board-3430sdp.c tries to clk_get core_l3_ck.  This clock doesn't exist
any longer in the current clock34xx.h, so it fails.  The code then tries
to fetch the clock's rate, which is also not currently used.  This is
dead code, so remove it.

Tested on 3430SDP ES1.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-3430sdp.c

index 22b0d033852886cf27dbe8800e1b458731656b92..cd5f4f713306aa55a5d38f4d82f3ca9db5677056 100644 (file)
@@ -264,16 +264,8 @@ static inline void __init sdp3430_init_smc91x(void)
 {
        int eth_cs;
        unsigned long cs_mem_base;
-       unsigned int rate;
-       struct clk *l3ck;
 
-       eth_cs  = SDP3430_SMC91X_CS;
-
-       l3ck = clk_get(NULL, "core_l3_ck");
-       if (IS_ERR(l3ck))
-               rate = 100000000;
-       else
-               rate = clk_get_rate(l3ck);
+       eth_cs  = SDP3430_SMC91X_CS;
 
        if (gpmc_cs_request(eth_cs, SZ_16M, &cs_mem_base) < 0) {
                printk(KERN_ERR "Failed to request GPMC mem for smc91x\n");