[PATCH 3/7] HACK: omap: convert 44xx data to common struct clk

Turquette, Mike mturquette at ti.com
Tue Dec 13 23:44:53 EST 2011


On Tue, Dec 13, 2011 at 8:27 PM, Paul Walmsley <paul at pwsan.com> wrote:
> Hi
>
> On Tue, 13 Dec 2011, Mike Turquette wrote:
>
>> omap_clk_get_by_name must die.
>
> You do realize that it exists for a reason?  That hardware clock names
> don't have anything to do with the Linux device model?

We have a tree structure of clks in the new common clk code, and a
list of clks in clkdev (which admittedly is meant to be a subset, but
in reality we register every OMAP clk with it), and then the omap clk
list which is only really used by omap_get_clk_by_name for hwmod and
some initialization stuff.  What I'd really like to do is get rid of
the OMAP clk code keeping track of it's clks in a separate list, which
seems quite wasteful.

Regards,
Mike



More information about the linux-arm-kernel mailing list