Skip to content

Commit

Permalink
[ARM] omap: remove clk->owner
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Russell King committed Feb 8, 2009
1 parent c1168dc commit eee5b19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion arch/arm/plat-omap/include/mach/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eee5b19

Please sign in to comment.