Skip to contentSkip to conversation

clk: zynqmp: Mark zynqmp_clk_get_max_divisor() static

PATCH Applied Stephen Boyd 1 participant 2 messages May 27, 2020

Subsystems (2)
lore
Share & tools
lore

Stephen Boyd

author maintainer
#0 lore raw

PATCH 1/1 clk: zynqmp: Mark zynqmp_clk_get_max_divisor() static

This function isn't used outside this file. Mark it static to silence sparse.

---
 drivers/clk/zynqmp/divider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/zynqmp/divider.c +1 -1
index 79a294488e84..b22ca33e40c0 100644
@@ -266,7 +266,7 @@ static const struct clk_ops zynqmp_clk_divider_ops = {
  * Return: Maximum divisor of a clock if query data is successful
  *	   U16_MAX in case of query data is not success
  */
-u32 zynqmp_clk_get_max_divisor(u32 clk_id, u32 type)
+static u32 zynqmp_clk_get_max_divisor(u32 clk_id, u32 type)
 {
 	const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops();
 	struct zynqmp_pm_query_data qdata = {0};

base-commit: 2ce7e495dab4647055f6cf300bc66870dc8a7cab

Signature · 1 line
Sent by a computer, using git, on the internet