diff options
author | Sean Anderson <seanga2@gmail.com> | 2023-12-16 14:38:41 -0500 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2024-01-29 22:35:02 -0500 |
commit | 82719d3f409f93b2ce85145547c0bb91624a2c63 (patch) | |
tree | 1780fc8d4eff5137fdb2813bab9abf8b940fffda /include/clk.h | |
parent | b500447ad6aef31de75e3e9242101ae96eceb7ca (diff) | |
download | u-boot-82719d3f409f93b2ce85145547c0bb91624a2c63.tar.gz u-boot-82719d3f409f93b2ce85145547c0bb91624a2c63.tar.bz2 u-boot-82719d3f409f93b2ce85145547c0bb91624a2c63.zip |
clk: Remove rfree
Nothing uses this function. Remove it. Since clk_free no longer does
anything, just stub it out.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20231216193843.2463779-2-seanga2@gmail.com
Diffstat (limited to 'include/clk.h')
-rw-r--r-- | include/clk.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/include/clk.h b/include/clk.h index 3d6394477b..ea5f6bd6f7 100644 --- a/include/clk.h +++ b/include/clk.h @@ -424,6 +424,10 @@ static inline int clk_release_bulk(struct clk_bulk *bulk) return clk_release_all(bulk->clks, bulk->count); } +static inline void clk_free(struct clk *clk) +{ +} + #if CONFIG_IS_ENABLED(CLK) /** * clk_request() - Request a clock by provider-specific ID. @@ -442,15 +446,6 @@ static inline int clk_release_bulk(struct clk_bulk *bulk) int clk_request(struct udevice *dev, struct clk *clk); /** - * clk_free() - Free a previously requested clock. - * @clk: A clock struct that was previously successfully requested by - * clk_request/get_by_*(). - * - * Free resources allocated by clk_request() (or any clk_get_* function). - */ -void clk_free(struct clk *clk); - -/** * clk_get_rate() - Get current clock rate. * @clk: A clock struct that was previously successfully requested by * clk_request/get_by_*(). @@ -594,11 +589,6 @@ static inline int clk_request(struct udevice *dev, struct clk *clk) return -ENOSYS; } -static inline void clk_free(struct clk *clk) -{ - return; -} - static inline ulong clk_get_rate(struct clk *clk) { return -ENOSYS; |