]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: fixed_rate: add dummy disable() function
authorSamuel Holland <samuel@sholland.org>
Wed, 13 Oct 2021 00:40:29 +0000 (19:40 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 19 Oct 2021 15:25:25 +0000 (11:25 -0400)
commit 6bf6d81c1112 ("clk: fixed_rate: add dummy enable() function")
implemented .enable, so fixed rate clocks can be used where drivers
might call clk_enable(). Implement the .disable op for the same reason;
some drivers, e.g. USB PHYs, may attempt to disable clocks at runtime.

Signed-off-by: Samuel Holland <samuel@sholland.org>
drivers/clk/clk_fixed_rate.c

index e0dc4ab85f8153c5b9bd462796c7a100654dd891..c5a2a42c923c00bc1c3bfdc723df92a9efe8f222 100644 (file)
@@ -26,6 +26,7 @@ static int dummy_enable(struct clk *clk)
 const struct clk_ops clk_fixed_rate_ops = {
        .get_rate = clk_fixed_rate_get_rate,
        .enable = dummy_enable,
+       .disable = dummy_enable,
 };
 
 void clk_fixed_rate_ofdata_to_plat_(struct udevice *dev,