mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 15:02:40 -04:00
wifi: brcmfmac: of: use devm_clk_get_optional_enabled_with_rate()
Fold the separate clk_set_rate() call into the clock getter. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://patch.msgid.link/20241007131639.98358-1-brgl@bgdev.pl
This commit is contained in:
committed by
Kalle Valo
parent
13d21a2896
commit
7cc7267a01
@@ -116,12 +116,11 @@ int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type,
|
||||
of_node_put(root);
|
||||
}
|
||||
|
||||
clk = devm_clk_get_optional_enabled(dev, "lpo");
|
||||
clk = devm_clk_get_optional_enabled_with_rate(dev, "lpo", 32768);
|
||||
if (IS_ERR(clk))
|
||||
return PTR_ERR(clk);
|
||||
|
||||
brcmf_dbg(INFO, "%s LPO clock\n", clk ? "enable" : "no");
|
||||
clk_set_rate(clk, 32768);
|
||||
|
||||
if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac"))
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user