]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: zynqmp: Make zynqmp_clk_get_max_divisor static
authorYueHaibing <yuehaibing@huawei.com>
Fri, 3 Apr 2020 08:30:40 +0000 (16:30 +0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 27 May 2020 01:45:49 +0000 (18:45 -0700)
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>
drivers/clk/zynqmp/divider.c

index 79a294488e8456e5e068c977978ed6b315e4a0ce..b22ca33e40c05d1902b3b7a4981163c8e0df1a2a 100644 (file)
@@ -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};