summaryrefslogtreecommitdiff
path: root/drivers/clk/h8300/clk-h8s2678.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-02-20 04:36:51 +0300
committerStephen Boyd <sboyd@codeaurora.org>2016-02-27 03:01:32 +0300
commitebf3f9a9234211ea9de186402b53389de676f1d5 (patch)
tree9eeeba37d6a23775d89245df879b64d1001aec4f /drivers/clk/h8300/clk-h8s2678.c
parent0985df89537e7fd5ec963c760f7860b5718510ce (diff)
downloadlinux-ebf3f9a9234211ea9de186402b53389de676f1d5.tar.xz
clk: h8300: Remove impossible check for of_clk_get_parent_count()
The checks for < 1 can be simplified now that of_clk_get_parent_count() returns an unsigned int. Update the code to reflect the int to unsigned int change. Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: <uclinux-h8-devel@lists.sourceforge.jp> 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/h8300/clk-h8s2678.c b/drivers/clk/h8300/clk-h8s2678.c
index 6cf38dc1c929..c9c2fd575ef7 100644
--- a/drivers/clk/h8300/clk-h8s2678.c
+++ b/drivers/clk/h8300/clk-h8s2678.c
@@ -83,7 +83,7 @@ static const struct clk_ops pll_ops = {
static void __init h8s2678_pll_clk_setup(struct device_node *node)
{
- int num_parents;
+ unsigned int num_parents;
struct clk *clk;
const char *clk_name = node->name;
const char *parent_name;
@@ -91,7 +91,7 @@ static void __init h8s2678_pll_clk_setup(struct device_node *node)
struct clk_init_data init;
num_parents = of_clk_get_parent_count(node);
- if (num_parents < 1) {
+ if (!num_parents) {
pr_err("%s: no parent found", clk_name);
return;
}