Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbc44dbe authored by Richard Cochran's avatar Richard Cochran Committed by David S. Miller
Browse files

cpts: fix build error by removing useless code.



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: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 143cdd8f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)
+0 −1
Original line number Diff line number Diff line
@@ -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];