diff options
| author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-04 16:42:54 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 06:38:41 -0500 |
| commit | eee5b19119458cd399ce4deaabea07c8d07159ae (patch) | |
| tree | ff811103e370b65cb3d9569bb212fc5fc1042ad2 | |
| parent | c1168dc31d8e0688168030ac66341897ed7ca32a (diff) | |
[ARM] omap: remove clk->owner
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>
| -rw-r--r-- | arch/arm/plat-omap/clock.c | 7 | ||||
| -rw-r--r-- | arch/arm/plat-omap/include/mach/clock.h | 1 |
2 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index 529c4a9f012e..c53205c574d1 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c | |||
| @@ -53,15 +53,14 @@ struct clk * clk_get(struct device *dev, const char *id) | |||
| 53 | mutex_lock(&clocks_mutex); | 53 | mutex_lock(&clocks_mutex); |
| 54 | 54 | ||
| 55 | list_for_each_entry(p, &clocks, node) { | 55 | list_for_each_entry(p, &clocks, node) { |
| 56 | if (p->id == idno && | 56 | if (p->id == idno && strcmp(id, p->name) == 0) { |
| 57 | strcmp(id, p->name) == 0 && try_module_get(p->owner)) { | ||
| 58 | clk = p; | 57 | clk = p; |
| 59 | goto found; | 58 | goto found; |
| 60 | } | 59 | } |
| 61 | } | 60 | } |
| 62 | 61 | ||
| 63 | list_for_each_entry(p, &clocks, node) { | 62 | list_for_each_entry(p, &clocks, node) { |
| 64 | if (strcmp(id, p->name) == 0 && try_module_get(p->owner)) { | 63 | if (strcmp(id, p->name) == 0) { |
| 65 | clk = p; | 64 | clk = p; |
| 66 | break; | 65 | break; |
| 67 | } | 66 | } |
| @@ -148,8 +147,6 @@ EXPORT_SYMBOL(clk_get_rate); | |||
| 148 | 147 | ||
| 149 | void clk_put(struct clk *clk) | 148 | void clk_put(struct clk *clk) |
| 150 | { | 149 | { |
| 151 | if (clk && !IS_ERR(clk)) | ||
| 152 | module_put(clk->owner); | ||
| 153 | } | 150 | } |
| 154 | EXPORT_SYMBOL(clk_put); | 151 | EXPORT_SYMBOL(clk_put); |
| 155 | 152 | ||
diff --git a/arch/arm/plat-omap/include/mach/clock.h b/arch/arm/plat-omap/include/mach/clock.h index 40a2ac353ded..547619f83568 100644 --- a/arch/arm/plat-omap/include/mach/clock.h +++ b/arch/arm/plat-omap/include/mach/clock.h | |||
| @@ -65,7 +65,6 @@ struct dpll_data { | |||
| 65 | struct clk { | 65 | struct clk { |
| 66 | struct list_head node; | 66 | struct list_head node; |
| 67 | const struct clkops *ops; | 67 | const struct clkops *ops; |
| 68 | struct module *owner; | ||
| 69 | const char *name; | 68 | const char *name; |
| 70 | int id; | 69 | int id; |
| 71 | struct clk *parent; | 70 | struct clk *parent; |
