diff options
author | 2009-03-28 14:18:11 +0000 | |
---|---|---|
committer | 2009-03-28 14:18:11 +0000 | |
commit | fd775c084ee55c046548616ca6b510c46d29f208 (patch) | |
tree | 36791c2b682950e7594747d12c44e30beb91a826 /include | |
parent | Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6 into devel (diff) | |
parent | imxfb: Fix TFT mode (diff) | |
download | wireguard-linux-fd775c084ee55c046548616ca6b510c46d29f208.tar.xz wireguard-linux-fd775c084ee55c046548616ca6b510c46d29f208.zip |
Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 778777316ea4..1db9bbf444a3 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -125,4 +125,21 @@ int clk_set_parent(struct clk *clk, struct clk *parent); */ struct clk *clk_get_parent(struct clk *clk); +/** + * clk_get_sys - get a clock based upon the device name + * @dev_id: device name + * @con_id: connection ID + * + * Returns a struct clk corresponding to the clock producer, or + * valid IS_ERR() condition containing errno. The implementation + * uses @dev_id and @con_id to determine the clock consumer, and + * thereby the clock producer. In contrast to clk_get() this function + * takes the device name instead of the device itself for identification. + * + * Drivers must assume that the clock source is not enabled. + * + * clk_get_sys should not be called from within interrupt context. + */ +struct clk *clk_get_sys(const char *dev_id, const char *con_id); + #endif |