diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-04-03 16:30:40 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-05-26 18:45:49 -0700 |
commit | 9d66e85784f196fb7442193a1d7f3896ed418806 (patch) | |
tree | 44ebe3733982157e2e8e78e928f03f5014344900 /drivers/clk/zynqmp | |
parent | 2ce7e495dab4647055f6cf300bc66870dc8a7cab (diff) |
clk: zynqmp: Make zynqmp_clk_get_max_divisor static
Fix sparse warning:
drivers/clk/zynqmp/divider.c:259:5: warning:
symbol 'zynqmp_clk_get_max_divisor' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lkml.kernel.org/r/20200403083040.37748-1-yuehaibing@huawei.com
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/zynqmp')
-rw-r--r-- | drivers/clk/zynqmp/divider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/zynqmp/divider.c b/drivers/clk/zynqmp/divider.c index 79a294488e84..b22ca33e40c0 100644 --- a/drivers/clk/zynqmp/divider.c +++ b/drivers/clk/zynqmp/divider.c @@ -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}; |