Thread (57 messages) 57 messages, 9 authors, 2016-06-15

[RFC] [PATCH] arm & sh: factorised duplicated clkdev.c

From: Russell King - ARM Linux <hidden>
Date: 2010-09-01 23:17:52
Also in: linux-sh

On Wed, Sep 01, 2010 at 01:13:02PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
On 10:12 Wed 01 Sep     , Russell King - ARM Linux wrote:
quoted
On Tue, Aug 31, 2010 at 01:16:42PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
quoted
factorise some generic infrastructure to assist looking up struct clks
for the ARM & SH architecture.
+/*
+ * Returns a clock. Note that we first try to use device id on the bus
+ * and clock name. If this fails, we try to use clock name only.
+ */
 struct clk *clk_get(struct device *dev, const char *con_id)
 {
 	const char *dev_id = dev ? dev_name(dev) : NULL;
 
 	return clk_get_sys(dev_id, con_id);
 }
-EXPORT_SYMBOL(clk_get);
+EXPORT_SYMBOL_GPL(clk_get);
 
 void clk_put(struct clk *clk)
 {
 	__clk_put(clk);
 }
-EXPORT_SYMBOL(clk_put);
+EXPORT_SYMBOL_GPL(clk_put);
Please leave these as-is.
ok but on SH it's GPL so it is ok with you Paul too?
If you want to get that pedantic... I created clkdev, and Sascha Hauer
extended it with some refactoring to create the clk_get_sys() interface.

If you look at the history, the sh version is a copy of the ARM version:

commit 51a5006afcd13176276f0935ee57c4cc6f210e83
Author: Paul Mundt [off-list ref]
Date:   Mon Mar 8 21:45:19 2010 +0900

    sh: Merge clkdev API updates.

    This rolls in the remainder of the clkdev API bits from the ARM tree.
    This can more or less be used verbatim, so we just copy it over and nuke
    our local version.

    Signed-off-by: Paul Mundt [off-list ref]

and

commit 441c2440aba2efd8d0f48a5e3357deec92283d62
Author: Magnus Damm [off-list ref]
Date:   Tue May 11 09:37:12 2010 +0000

    sh: remove unused clock lookup

    Now when all clocks are registered using clkdev,
    get rid of the special SH-specific clock lookup.

    Also ditch the unused module ref counting code.
    This patch syncs the SH behaviour with ARM.

    Signed-off-by: Magnus Damm [off-list ref]
    Signed-off-by: Paul Mundt [off-list ref]

so really it's a question for primerily me, and maybe Sascha.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help