summaryrefslogtreecommitdiff
path: root/drivers/clk/h8300/clk-h8s2678.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-06-20 15:27:03 +0800
committerStephen Boyd <sboyd@codeaurora.org>2015-07-28 11:53:20 -0700
commite306479ac252928b84cc563c6e790f9b7e7ae427 (patch)
tree339423158080f55792c2bee3c0cf0eec751aa8a1 /drivers/clk/h8300/clk-h8s2678.c
parentd7a304e9d018c99dda80f4c16ec0fe817b5be4a1 (diff)
downloadlinux-e306479ac252928b84cc563c6e790f9b7e7ae427.tar.gz
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: Axel Lin <axel.lin@ingics.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/h8300/clk-h8s2678.c')
-rw-r--r--drivers/clk/h8300/clk-h8s2678.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/h8300/clk-h8s2678.c b/drivers/clk/h8300/clk-h8s2678.c
index 11808cb4f141..46e16f22b38f 100644
--- a/drivers/clk/h8300/clk-h8s2678.c
+++ b/drivers/clk/h8300/clk-h8s2678.c
@@ -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;