diff options
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 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); | |||
142 | */ | 142 | */ |
143 | struct clk *clk_get_sys(const char *dev_id, const char *con_id); | 143 | struct clk *clk_get_sys(const char *dev_id, const char *con_id); |
144 | 144 | ||
145 | /** | ||
146 | * clk_add_alias - add a new clock alias | ||
147 | * @alias: name for clock alias | ||
148 | * @alias_dev_name: device name | ||
149 | * @id: platform specific clock name | ||
150 | * @dev: device | ||
151 | * | ||
152 | * Allows using generic clock names for drivers by adding a new alias. | ||
153 | * Assumes clkdev, see clkdev.h for more info. | ||
154 | */ | ||
155 | int clk_add_alias(const char *alias, const char *alias_dev_name, char *id, | ||
156 | struct device *dev); | ||
157 | |||
145 | #endif | 158 | #endif |