From: dinguyen@altera.com (Dinh Nguyen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 05/10] clk: socfpga: Use NULL instead of 0
Date: Fri, 13 Sep 2013 17:03:28 -0500 [thread overview]
Message-ID: <1379109808.14178.0.camel@linux-builds1> (raw)
In-Reply-To: <1379064232-10261-5-git-send-email-sachin.kamat@linaro.org>
On Fri, 2013-09-13 at 14:53 +0530, Sachin Kamat wrote:
> 'div_reg' is a pointer. Assign NULL instead of 0.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Dinh Nguyen <dinguyen@altera.com>
> ---
> drivers/clk/socfpga/clk.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c
> index 5bb848c..454ddc1 100644
> --- a/drivers/clk/socfpga/clk.c
> +++ b/drivers/clk/socfpga/clk.c
> @@ -292,7 +292,7 @@ static void __init socfpga_gate_clk_init(struct device_node *node,
> socfpga_clk->shift = div_reg[1];
> socfpga_clk->width = div_reg[2];
> } else {
> - socfpga_clk->div_reg = 0;
> + socfpga_clk->div_reg = NULL;
> }
>
> of_property_read_string(node, "clock-output-names", &clk_name);
Acked-by: Dinh Nguyen <dinguyen@altera.com>
next prev parent reply other threads:[~2013-09-13 22:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 9:23 [PATCH 01/10] clk: bcm2835: Remove duplicate inclusion of clk-provider.h Sachin Kamat
2013-09-13 9:23 ` [PATCH 02/10] clk: SPEAr: Staticize clk_frac_ops Sachin Kamat
2013-09-13 9:45 ` Viresh Kumar
2013-09-13 9:23 ` [PATCH 03/10] clk: tegra: Staticize local variables in clk-pll.c Sachin Kamat
2013-09-13 9:23 ` [PATCH 04/10] clk: tegra: Staticize tegra_clk_periph_nodiv_ops Sachin Kamat
2013-09-13 9:23 ` [PATCH 05/10] clk: socfpga: Use NULL instead of 0 Sachin Kamat
2013-09-13 22:03 ` Dinh Nguyen [this message]
2013-09-13 9:23 ` [PATCH 06/10] clk: versatile: Staticize clk_sp810_timerclken_of_get Sachin Kamat
2013-09-13 9:23 ` [PATCH 07/10] clk: mvebu: Staticize of_cpu_clk_setup Sachin Kamat
2013-09-13 9:52 ` Gregory CLEMENT
2013-09-13 9:23 ` [PATCH 08/10] clk: vt8500: Staticize vtwm_pll_ops Sachin Kamat
2013-09-13 9:23 ` [PATCH 09/10] clk: ux500: Remove extra semicolon Sachin Kamat
2013-09-17 8:02 ` Ulf Hansson
2013-09-13 9:23 ` [PATCH 10/10] clk: max77686: Remove redundant break Sachin Kamat
2013-09-24 12:04 ` [PATCH 01/10] clk: bcm2835: Remove duplicate inclusion of clk-provider.h Sachin Kamat
2013-10-02 6:49 ` Sachin Kamat
2013-10-29 11:58 ` Sachin Kamat
-- strict thread matches above, loose matches on Subject: below --
2013-10-08 11:17 [PATCH Resend " Sachin Kamat
2013-10-08 11:17 ` [PATCH 05/10] clk: socfpga: Use NULL instead of 0 Sachin Kamat
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=1379109808.14178.0.camel@linux-builds1 \
--to=dinguyen@altera.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).