diff options
author | Tony Lindgren <tony@atomide.com> | 2009-06-03 17:43:14 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-06-04 17:45:43 +0100 |
commit | c0683039207226afcffbe0fbf6a1caaee77a37b0 (patch) | |
tree | d91295ea184722929a12c772839c3d6f502ad95b /include/linux/clk.h | |
parent | 5926a295bb78272b3f648f62febecd19a1b6a6ca (diff) | |
download | op-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/clk.h')
-rw-r--r-- | include/linux/clk.h | 13 |
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 |