summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMike Turquette <mturquette@linaro.org>2013-12-04 12:14:59 -0800
committerMike Turquette <mturquette@linaro.org>2013-12-04 12:14:59 -0800
commit9ffe29d780dd5f9c662f2c32f8dc64435da726bf (patch)
treef583f02351c36f50c43b7e4eb2dc7d2bc6ed2dab /include/linux
parentcdf64eeeb0d762585e2126f3024458d199c2635d (diff)
parentfcb0ee6a3d331fb23dbb546500021f6e4cac5689 (diff)
downloadcachepc-linux-9ffe29d780dd5f9c662f2c32f8dc64435da726bf.tar.gz
cachepc-linux-9ffe29d780dd5f9c662f2c32f8dc64435da726bf.zip
Merge branch 'clk/clk-unregister' of git://linuxtv.org/snawrocki/samsung into clk-next-unregister
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk-private.h5
-rw-r--r--include/linux/clkdev.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h
index 8138c94409f3..72c65e05450b 100644
--- a/include/linux/clk-private.h
+++ b/include/linux/clk-private.h
@@ -12,6 +12,7 @@
#define __LINUX_CLK_PRIVATE_H
#include <linux/clk-provider.h>
+#include <linux/kref.h>
#include <linux/list.h>
/*
@@ -25,10 +26,13 @@
#ifdef CONFIG_COMMON_CLK
+struct module;
+
struct clk {
const char *name;
const struct clk_ops *ops;
struct clk_hw *hw;
+ struct module *owner;
struct clk *parent;
const char **parent_names;
struct clk **parents;
@@ -47,6 +51,7 @@ struct clk {
#ifdef CONFIG_COMMON_CLK_DEBUG
struct dentry *dentry;
#endif
+ struct kref ref;
};
/*
diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h
index a6a6f603103b..94bad77eeb4a 100644
--- a/include/linux/clkdev.h
+++ b/include/linux/clkdev.h
@@ -43,4 +43,9 @@ int clk_add_alias(const char *, const char *, char *, struct device *);
int clk_register_clkdev(struct clk *, const char *, const char *, ...);
int clk_register_clkdevs(struct clk *, struct clk_lookup *, size_t);
+#ifdef CONFIG_COMMON_CLK
+int __clk_get(struct clk *clk);
+void __clk_put(struct clk *clk);
+#endif
+
#endif