提交 e306479a 编写于 作者: A Axel Lin 提交者: Stephen Boyd

clk: h8300: Fix signness bug

of_clk_get_parent_count() may return negative error code, so num_parents
needs to be int rather than unsigned int.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 d7a304e9
......@@ -15,7 +15,7 @@ static DEFINE_SPINLOCK(clklock);
static void __init h8300_div_clk_setup(struct device_node *node)
{
unsigned int num_parents;
int num_parents;
struct clk *clk;
const char *clk_name = node->name;
const char *parent_name;
......
......@@ -84,7 +84,7 @@ static const struct clk_ops pll_ops = {
static void __init h8s2678_pll_clk_setup(struct device_node *node)
{
unsigned int num_parents;
int num_parents;
struct clk *clk;
const char *clk_name = node->name;
const char *parent_name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册