Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eee5b191 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c1168dc3
Loading
Loading
Loading
Loading
+2 −5
Original line number Original line Diff line number Diff line
@@ -53,15 +53,14 @@ struct clk * clk_get(struct device *dev, const char *id)
	mutex_lock(&clocks_mutex);
	mutex_lock(&clocks_mutex);


	list_for_each_entry(p, &clocks, node) {
	list_for_each_entry(p, &clocks, node) {
		if (p->id == idno &&
		if (p->id == idno && strcmp(id, p->name) == 0) {
		    strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
			clk = p;
			clk = p;
			goto found;
			goto found;
		}
		}
	}
	}


	list_for_each_entry(p, &clocks, node) {
	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;
			clk = p;
			break;
			break;
		}
		}
@@ -148,8 +147,6 @@ EXPORT_SYMBOL(clk_get_rate);


void clk_put(struct clk *clk)
void clk_put(struct clk *clk)
{
{
	if (clk && !IS_ERR(clk))
		module_put(clk->owner);
}
}
EXPORT_SYMBOL(clk_put);
EXPORT_SYMBOL(clk_put);


+0 −1
Original line number Original line Diff line number Diff line
@@ -65,7 +65,6 @@ struct dpll_data {
struct clk {
struct clk {
	struct list_head	node;
	struct list_head	node;
	const struct clkops	*ops;
	const struct clkops	*ops;
	struct module		*owner;
	const char		*name;
	const char		*name;
	int			id;
	int			id;
	struct clk		*parent;
	struct clk		*parent;