OSDN Git Service

clk: imx: scu: Make pd_np with static keyword
authorZou Wei <zou_wei@huawei.com>
Wed, 4 Nov 2020 11:19:31 +0000 (19:19 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 10 Nov 2020 02:17:23 +0000 (10:17 +0800)
Fix the following sparse warning:

./clk-scu.c:23:20: warning: symbol 'pd_np' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-scu.c

index d0243c5..d10f60e 100644 (file)
@@ -20,7 +20,7 @@
 #define IMX_SIP_SET_CPUFREQ            0x00
 
 static struct imx_sc_ipc *ccm_ipc_handle;
-struct device_node *pd_np;
+static struct device_node *pd_np;
 static struct platform_driver imx_clk_scu_driver;
 
 struct imx_scu_clk_node {