summaryrefslogtreecommitdiffstats
path: root/include/linux
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
parent5926a295bb78272b3f648f62febecd19a1b6a6ca (diff)
downloadop-kernel-dev-c0683039207226afcffbe0fbf6a1caaee77a37b0.zip
op-kernel-dev-c0683039207226afcffbe0fbf6a1caaee77a37b0.tar.gz
[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')
-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 1db9bbf..1d37f42 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
OpenPOWER on IntegriCloud