]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
cpts: fix build error by removing useless code.
authorRichard Cochran <richardcochran@gmail.com>
Sun, 23 Dec 2012 21:19:09 +0000 (21:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Dec 2012 22:15:09 +0000 (14:15 -0800)
The cpts driver tries to obtain the input clock frequency by calling the
clock's internal 'recalc' method. Since <plat/clock.h> has been removed,
this code can no longer compile.

However, the driver never makes use of the frequency value, so this patch
fixes the issue by removing the offending code altogether.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpts.c
drivers/net/ethernet/ti/cpts.h

index 5e62c1aeeffb2325fd392820c9aa1110f4b19a19..5ab8fb4037faebbb501f82761860dba91f09325f 100644 (file)
@@ -248,7 +248,6 @@ static void cpts_clk_init(struct cpts *cpts)
                return;
        }
        clk_enable(cpts->refclk);
-       cpts->freq = cpts->refclk->recalc(cpts->refclk);
 }
 
 static void cpts_clk_release(struct cpts *cpts)
index e1bba3a496b2bdb32f0fc08557a61361e59802b1..fe993cdd7e23b76ad13f09585c215d87c83a0e46 100644 (file)
@@ -120,7 +120,6 @@ struct cpts {
        struct delayed_work overflow_work;
        int phc_index;
        struct clk *refclk;
-       unsigned long freq;
        struct list_head events;
        struct list_head pool;
        struct cpts_event pool_data[CPTS_MAX_EVENTS];