[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1425195815-14895-1-git-send-email-ysato@users.sourceforge.jp>
Date: Sun, 1 Mar 2015 16:43:35 +0900
From: Yoshinori Sato <ysato@...rs.sourceforge.jp>
To: Russell King <linux@....linux.org.uk>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Yoshinori Sato <ysato@...rs.sourceforge.jp>
Subject: [PATCH] clkdev: clk_add_alias don't put origin clock
Refer to 'r' later.
So don't put in clk_add_alias.
Signed-off-by: Yoshinori Sato <ysato@...rs.sourceforge.jp>
---
drivers/clk/clkdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
index 043fd36..fddb999 100644
--- a/drivers/clk/clkdev.c
+++ b/drivers/clk/clkdev.c
@@ -318,7 +318,6 @@ int clk_add_alias(const char *alias, const char *alias_dev_name, char *id,
return PTR_ERR(r);
l = clkdev_alloc(r, alias, alias_dev_name);
- clk_put(r);
if (!l)
return -ENODEV;
clkdev_add(l);
@@ -334,6 +333,7 @@ void clkdev_drop(struct clk_lookup *cl)
mutex_lock(&clocks_mutex);
list_del(&cl->node);
mutex_unlock(&clocks_mutex);
+ clk_put(cl->clk);
kfree(cl);
}
EXPORT_SYMBOL(clkdev_drop);
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists