]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] omap: remove clk->owner
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 4 Nov 2008 21:42:54 +0000 (21:42 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Feb 2009 11:38:41 +0000 (11:38 +0000)
clk->owner is always NULL, so its existence doesn't serve any useful
function other than bloating the kernel by 992 bytes.  Remove it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/include/mach/clock.h

index 529c4a9f012e7bb90cec4a8cb87280a5ad0081f8..c53205c574d1051e8705671636f19f049d1ed294 100644 (file)
@@ -53,15 +53,14 @@ struct clk * clk_get(struct device *dev, const char *id)
        mutex_lock(&clocks_mutex);
 
        list_for_each_entry(p, &clocks, node) {
-               if (p->id == idno &&
-                   strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
+               if (p->id == idno && strcmp(id, p->name) == 0) {
                        clk = p;
                        goto found;
                }
        }
 
        list_for_each_entry(p, &clocks, node) {
-               if (strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
+               if (strcmp(id, p->name) == 0) {
                        clk = p;
                        break;
                }
@@ -148,8 +147,6 @@ EXPORT_SYMBOL(clk_get_rate);
 
 void clk_put(struct clk *clk)
 {
-       if (clk && !IS_ERR(clk))
-               module_put(clk->owner);
 }
 EXPORT_SYMBOL(clk_put);
 
index 40a2ac353dedfca769bc63a93d653619bc107e8f..547619f835682d1151efbdd5a667842bed872761 100644 (file)
@@ -65,7 +65,6 @@ struct dpll_data {
 struct clk {
        struct list_head        node;
        const struct clkops     *ops;
-       struct module           *owner;
        const char              *name;
        int                     id;
        struct clk              *parent;