]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP2/3 clock: remove clk->owner
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 7 Jan 2009 15:20:26 +0000 (17:20 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 7 Jan 2009 15:20:26 +0000 (17:20 +0200)
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>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/include/mach/clock.h

index 80eb558cee4ca2a8ddd1068c235f46d6ade2ab56..ab3d87910a17da2ecd73af4379e8afa6a7a430fe 100644 (file)
@@ -191,15 +191,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;
                }
@@ -295,8 +294,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 a0398322899fbc9f75295d0a6933e9f7101577c4..58450a127596bdaa9622a16c05fc83c8c404e0c2 100644 (file)
@@ -77,7 +77,6 @@ struct clk_child {
 
 struct clk {
        struct list_head        node;
-       struct module           *owner;
        const char              *name;
        int                     id;
        struct clk              *parent;