aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-05-01 16:02:26 -0400
committerStephen Boyd <sboyd@codeaurora.org>2015-05-14 20:11:27 -0400
commit11bee5e19afd11a42a03df9025f82a1bab4d5595 (patch)
tree44123bbd254861bbbc3cd7a250ca2d30e786d0b7
parent412d6b47cc6e33a04fe03be1db725202417f4d72 (diff)
clk: versatile: Silence sparse warnings
drivers/clk/versatile/clk-sp810.c:159:29: error: incompatible types for operation (<=) drivers/clk/versatile/clk-sp810.c:159:29: left side has type char const *<noident> drivers/clk/versatile/clk-sp810.c:159:29: right side has type int drivers/clk/versatile/clk-sp810.c:159:53: error: incompatible types for operation (<=) drivers/clk/versatile/clk-sp810.c:159:53: left side has type char const *<noident> drivers/clk/versatile/clk-sp810.c:159:53: right side has type int drivers/clk/versatile/clk-sp810.c:138:13: warning: symbol 'clk_sp810_of_setup' was not declared. Should it be static? Acked: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r--drivers/clk/versatile/clk-sp810.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/versatile/clk-sp810.c b/drivers/clk/versatile/clk-sp810.c
index c6e86a9a2aa3..a96dd8e53fdb 100644
--- a/drivers/clk/versatile/clk-sp810.c
+++ b/drivers/clk/versatile/clk-sp810.c
@@ -135,7 +135,7 @@ static struct clk *clk_sp810_timerclken_of_get(struct of_phandle_args *clkspec,
135 return sp810->timerclken[clkspec->args[0]].clk; 135 return sp810->timerclken[clkspec->args[0]].clk;
136} 136}
137 137
138void __init clk_sp810_of_setup(struct device_node *node) 138static void __init clk_sp810_of_setup(struct device_node *node)
139{ 139{
140 struct clk_sp810 *sp810 = kzalloc(sizeof(*sp810), GFP_KERNEL); 140 struct clk_sp810 *sp810 = kzalloc(sizeof(*sp810), GFP_KERNEL);
141 const char *parent_names[2]; 141 const char *parent_names[2];
@@ -156,7 +156,7 @@ void __init clk_sp810_of_setup(struct device_node *node)
156 "timclk"); 156 "timclk");
157 parent_names[1] = of_clk_get_parent_name(node, sp810->timclk_index); 157 parent_names[1] = of_clk_get_parent_name(node, sp810->timclk_index);
158 158
159 if (parent_names[0] <= 0 || parent_names[1] <= 0) { 159 if (!parent_names[0] || !parent_names[1]) {
160 pr_warn("Failed to obtain parent clocks for SP810!\n"); 160 pr_warn("Failed to obtain parent clocks for SP810!\n");
161 return; 161 return;
162 } 162 }