Lines Matching +full:fixed +full:- +full:rate
1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include <linux/clk-provider.h>
10 #include "clk-uniphier.h"
16 struct clk_fixed_rate *fixed; in uniphier_clk_register_fixed_rate() local
20 /* allocate fixed-rate clock */ in uniphier_clk_register_fixed_rate()
21 fixed = devm_kzalloc(dev, sizeof(*fixed), GFP_KERNEL); in uniphier_clk_register_fixed_rate()
22 if (!fixed) in uniphier_clk_register_fixed_rate()
23 return ERR_PTR(-ENOMEM); in uniphier_clk_register_fixed_rate()
31 fixed->fixed_rate = data->fixed_rate; in uniphier_clk_register_fixed_rate()
32 fixed->hw.init = &init; in uniphier_clk_register_fixed_rate()
34 ret = devm_clk_hw_register(dev, &fixed->hw); in uniphier_clk_register_fixed_rate()
38 return &fixed->hw; in uniphier_clk_register_fixed_rate()