mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-26 04:17:09 +00:00
clk: fixed_rate: add dummy disable() function
commit 6bf6d81c11
("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>
This commit is contained in:
parent
b20b16a794
commit
17864406a4
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue