From: Geert Uytterhoeven <geert+renesas@glider.be> To: Boris Brezillon <boris.brezillon@free-electrons.com>, Maxime Coquelin <maxime.coquelin@st.com>, Patrice Chotard <patrice.chotard@st.com>, Tero Kristo <t-kristo@ti.com>, Mike Turquette <mturquette@linaro.org>, Stephen Boyd <sboyd@codeaurora.org>, Russell King <linux@arm.linux.org.uk> Cc: linux-clk@vger.kernel.org, kernel@stlinux.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven <geert+renesas@glider.be> Subject: [PATCH 2/5] clk: st: Use of_clk_get_parent_count() instead of open coding Date: Fri, 29 May 2015 11:25:46 +0200 [thread overview] Message-ID: <1432891549-23295-3-git-send-email-geert+renesas@glider.be> (raw) In-Reply-To: <1432891549-23295-1-git-send-email-geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- drivers/clk/st/clk-flexgen.c | 2 +- drivers/clk/st/clkgen-mux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/st/clk-flexgen.c b/drivers/clk/st/clk-flexgen.c index 409ed4b0b569ff60..657ca14ba709a64b 100644 --- a/drivers/clk/st/clk-flexgen.c +++ b/drivers/clk/st/clk-flexgen.c @@ -245,7 +245,7 @@ static const char ** __init flexgen_get_parents(struct device_node *np, const char **parents; int nparents, i; - nparents = of_count_phandle_with_args(np, "clocks", "#clock-cells"); + nparents = of_clk_get_parent_count(np); if (WARN_ON(nparents <= 0)) return NULL; diff --git a/drivers/clk/st/clkgen-mux.c b/drivers/clk/st/clkgen-mux.c index 80aa77dbf660cf0c..4fbe6e099587c054 100644 --- a/drivers/clk/st/clkgen-mux.c +++ b/drivers/clk/st/clkgen-mux.c @@ -26,7 +26,7 @@ static const char ** __init clkgen_mux_get_parents(struct device_node *np, const char **parents; int nparents, i; - nparents = of_count_phandle_with_args(np, "clocks", "#clock-cells"); + nparents = of_clk_get_parent_count(np); if (WARN_ON(nparents <= 0)) return ERR_PTR(-EINVAL); -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: geert+renesas@glider.be (Geert Uytterhoeven) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] clk: st: Use of_clk_get_parent_count() instead of open coding Date: Fri, 29 May 2015 11:25:46 +0200 [thread overview] Message-ID: <1432891549-23295-3-git-send-email-geert+renesas@glider.be> (raw) In-Reply-To: <1432891549-23295-1-git-send-email-geert+renesas@glider.be> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- drivers/clk/st/clk-flexgen.c | 2 +- drivers/clk/st/clkgen-mux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/st/clk-flexgen.c b/drivers/clk/st/clk-flexgen.c index 409ed4b0b569ff60..657ca14ba709a64b 100644 --- a/drivers/clk/st/clk-flexgen.c +++ b/drivers/clk/st/clk-flexgen.c @@ -245,7 +245,7 @@ static const char ** __init flexgen_get_parents(struct device_node *np, const char **parents; int nparents, i; - nparents = of_count_phandle_with_args(np, "clocks", "#clock-cells"); + nparents = of_clk_get_parent_count(np); if (WARN_ON(nparents <= 0)) return NULL; diff --git a/drivers/clk/st/clkgen-mux.c b/drivers/clk/st/clkgen-mux.c index 80aa77dbf660cf0c..4fbe6e099587c054 100644 --- a/drivers/clk/st/clkgen-mux.c +++ b/drivers/clk/st/clkgen-mux.c @@ -26,7 +26,7 @@ static const char ** __init clkgen_mux_get_parents(struct device_node *np, const char **parents; int nparents, i; - nparents = of_count_phandle_with_args(np, "clocks", "#clock-cells"); + nparents = of_clk_get_parent_count(np); if (WARN_ON(nparents <= 0)) return ERR_PTR(-EINVAL); -- 1.9.1
next prev parent reply other threads:[~2015-05-29 9:25 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-29 9:25 [PATCH 0/5] clk: Use of_clk_get_parent_count() instead of open coding Geert Uytterhoeven 2015-05-29 9:25 ` Geert Uytterhoeven 2015-05-29 9:25 ` [PATCH 1/5] clk: at91: " Geert Uytterhoeven 2015-05-29 9:25 ` Geert Uytterhoeven 2015-05-30 7:43 ` Boris Brezillon 2015-05-30 7:43 ` Boris Brezillon 2015-06-04 20:52 ` Stephen Boyd 2015-06-04 20:52 ` Stephen Boyd 2015-05-29 9:25 ` Geert Uytterhoeven [this message] 2015-05-29 9:25 ` [PATCH 2/5] clk: st: " Geert Uytterhoeven 2015-06-04 20:53 ` Stephen Boyd 2015-06-04 20:53 ` Stephen Boyd 2015-05-29 9:25 ` [PATCH 3/5] clk: ti: " Geert Uytterhoeven 2015-05-29 9:25 ` Geert Uytterhoeven 2015-06-04 20:53 ` Stephen Boyd 2015-06-04 20:53 ` Stephen Boyd 2015-05-29 9:25 ` [PATCH 4/5] [RFC] clk: Provide dummy of_clk_get_parent_count() for !OF/!CCF Geert Uytterhoeven 2015-05-29 9:25 ` Geert Uytterhoeven 2015-05-29 9:25 ` [PATCH 5/5] [RFC] ARM: timer-sp: Use of_clk_get_parent_count() instead of open coding Geert Uytterhoeven 2015-05-29 9:25 ` Geert Uytterhoeven 2015-06-03 23:44 ` Stephen Boyd 2015-06-03 23:44 ` Stephen Boyd 2015-06-04 7:26 ` Geert Uytterhoeven 2015-06-04 7:26 ` Geert Uytterhoeven 2015-06-04 18:14 ` Stephen Boyd 2015-06-04 18:14 ` Stephen Boyd
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1432891549-23295-3-git-send-email-geert+renesas@glider.be \ --to=geert+renesas@glider.be \ --cc=boris.brezillon@free-electrons.com \ --cc=kernel@stlinux.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-clk@vger.kernel.org \ --cc=linux-omap@vger.kernel.org \ --cc=linux@arm.linux.org.uk \ --cc=maxime.coquelin@st.com \ --cc=mturquette@linaro.org \ --cc=patrice.chotard@st.com \ --cc=sboyd@codeaurora.org \ --cc=t-kristo@ti.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.