Skip to content

Commit 9d66e85

Browse files
YueHaibingbebarino
authored andcommitted
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 <[email protected]> Signed-off-by: YueHaibing <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Michal Simek <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 2ce7e49 commit 9d66e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/zynqmp/divider.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static const struct clk_ops zynqmp_clk_divider_ops = {
266266
* Return: Maximum divisor of a clock if query data is successful
267267
* U16_MAX in case of query data is not success
268268
*/
269-
u32 zynqmp_clk_get_max_divisor(u32 clk_id, u32 type)
269+
static u32 zynqmp_clk_get_max_divisor(u32 clk_id, u32 type)
270270
{
271271
const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops();
272272
struct zynqmp_pm_query_data qdata = {0};

0 commit comments

Comments
 (0)