From patchwork Fri Sep 13 09:23:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2882431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ED1E1BFF05 for ; Fri, 13 Sep 2013 09:44:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB3A82038B for ; Fri, 13 Sep 2013 09:44:40 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3F93202E8 for ; Fri, 13 Sep 2013 09:44:35 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKPuN-0007uy-PG; Fri, 13 Sep 2013 09:43:24 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKPu3-0007Ld-12; Fri, 13 Sep 2013 09:43:03 +0000 Received: from mail-pa0-f51.google.com ([209.85.220.51]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKPta-0007GP-Hu for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 09:42:35 +0000 Received: by mail-pa0-f51.google.com with SMTP id lf1so2328054pab.10 for ; Fri, 13 Sep 2013 02:42:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=M9Kj2Ojlj+SeAIl8NsL9nO4TpHZWnOx1jiGEe4j8Wuk=; b=dNdqZp6+tpBVgxC1u+a5tvGxtJrdWOyHpZfwUe67w7GfqnZJroUxHnuyzfaqbBGY06 ztzrWz9Wpd2dJndvsqB0Bq99uWbqt/VmaVQrKr7Vmg3vbACk590jWURndQupfTbD02C/ JSAJCWA2mlN5XlCCQKVU5UJKfDMdjC5yceera+jnXr+rJFqDjmiOGHUT2WlvRXYdHl8k QR+IEbPUqepedJ5Yun5U/aUe6FbZjs4NAXZz+JtyAs1icq2J1M69LStabNuGMQGiFUb+ MgfKOPp96skSwzZebfjN5iwk/7hNRgSR2sU1cD/fQ3oAH3ID1Q6ow/HyY0rp7gD6TCAV 9SzQ== X-Gm-Message-State: ALoCoQlfuSvNHaNWtV7IUAB3UBf5b8OtwaWsbUe+MSUYCW/IncSZJagcVUHyn1hv7RlGthjeEC3u X-Received: by 10.68.50.106 with SMTP id b10mr12542138pbo.152.1379065331973; Fri, 13 Sep 2013 02:42:11 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id mr3sm10532251pbb.27.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 02:42:11 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/10] clk: socfpga: Use NULL instead of 0 Date: Fri, 13 Sep 2013 14:53:47 +0530 Message-Id: <1379064232-10261-5-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1379064232-10261-1-git-send-email-sachin.kamat@linaro.org> References: <1379064232-10261-1-git-send-email-sachin.kamat@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130913_054234_751421_4B03083B X-CRM114-Status: GOOD ( 10.42 ) X-Spam-Score: -2.6 (--) Cc: sachin.kamat@linaro.org, mturquette@linaro.org, Dinh Nguyen X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 'div_reg' is a pointer. Assign NULL instead of 0. Signed-off-by: Sachin Kamat Cc: Dinh Nguyen Acked-by: Dinh Nguyen --- 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);