Commit 9d66e857 authored by YueHaibing's avatar YueHaibing Committed by Stephen Boyd

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lkml.kernel.org/r/20200403083040.37748-1-yuehaibing@huawei.comReviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 2ce7e495
...@@ -266,7 +266,7 @@ static const struct clk_ops zynqmp_clk_divider_ops = { ...@@ -266,7 +266,7 @@ static const struct clk_ops zynqmp_clk_divider_ops = {
* Return: Maximum divisor of a clock if query data is successful * Return: Maximum divisor of a clock if query data is successful
* U16_MAX in case of query data is not success * 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(); const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops();
struct zynqmp_pm_query_data qdata = {0}; struct zynqmp_pm_query_data qdata = {0};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment