aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clk.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2009-06-03 17:43:14 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-06-04 17:45:43 +0100
commitc0683039207226afcffbe0fbf6a1caaee77a37b0 (patch)
treed91295ea184722929a12c772839c3d6f502ad95b /include/linux/clk.h
parent[ARM] 5541/1: serial/amba-pl011.c: add support for the modified port found in Nomadik (diff)
downloadlinux-dev-c0683039207226afcffbe0fbf6a1caaee77a37b0.tar.xz
linux-dev-c0683039207226afcffbe0fbf6a1caaee77a37b0.zip
[ARM] 5536/1: Move clk_add_alias() to arch/arm/common/clkdev.c
This can be used for other arm platforms too as discussed on the linux-arm-kernel list. Also check the return value with IS_ERR and return PTR_ERR as suggested by Russell King. Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/clk.h')
-rw-r--r--include/linux/clk.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 1db9bbf444a3..1d37f42ac294 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -142,4 +142,17 @@ struct clk *clk_get_parent(struct clk *clk);
*/
struct clk *clk_get_sys(const char *dev_id, const char *con_id);
+/**
+ * clk_add_alias - add a new clock alias
+ * @alias: name for clock alias
+ * @alias_dev_name: device name
+ * @id: platform specific clock name
+ * @dev: device
+ *
+ * Allows using generic clock names for drivers by adding a new alias.
+ * Assumes clkdev, see clkdev.h for more info.
+ */
+int clk_add_alias(const char *alias, const char *alias_dev_name, char *id,
+ struct device *dev);
+
#endif