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>
This commit is contained in:
parent
2ce7e495da
commit
9d66e85784
@ -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};
|
||||||
|
Loading…
Reference in New Issue
Block a user