summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-10-07 15:16:39 +0200
committerKalle Valo <kvalo@kernel.org>2024-10-17 19:49:59 +0300
commit7cc7267a01631f7379c751078115ac6614f9529e (patch)
tree793ce38fa73015d91603d86a827e3b8017b015a8
parent13d21a2896081ce649914e529168696770a2524a (diff)
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
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
index b90e23bb9366..ae98e371dbfd 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
@@ -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;