Re: [PATCH v4 2/7] ARM: davinci: don't use static clk_lookup

From: David Lechner
Date: Thu Jan 04 2018 - 12:43:17 EST




On 1/4/18 5:10 AM, Sekhar Nori wrote:
Hi David,

On Monday 01 January 2018 05:09 AM, David Lechner wrote:
In preparation of moving to the common clock framework, usage of static
struct clk_lookup is removed. The common clock framework uses an opaque
struct clk, so we won't be able to use static tables as was previously
done.

davinci_clk_init() is changed to init a single clock instead of a table
and an individual clk_register_clkdev() is added for each clock.

Signed-off-by: David Lechner <david@xxxxxxxxxxxxxx>

Is there a need for this considering in 6/7 you end up modifying quite a
bit of this patch again?

No, you are right. And I've been working ahead with device tree support so I think I want to do this a bit differently anyway.