From patchwork Tue Oct 8 11:17:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3003011 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 34D9BBF924 for ; Tue, 8 Oct 2013 11:21:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B9D620149 for ; Tue, 8 Oct 2013 11:21:45 +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 CCA4F2009C for ; Tue, 8 Oct 2013 11:21:43 +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 1VTVKj-0007PJ-5d; Tue, 08 Oct 2013 11:20:10 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTVKG-0003pT-JK; Tue, 08 Oct 2013 11:19:40 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTVJW-0003jj-Gg for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2013 11:18:55 +0000 Received: by mail-pb0-f49.google.com with SMTP id xb4so8500365pbc.22 for ; Tue, 08 Oct 2013 04:18:33 -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=abIAJPfsw0WXFH1rKF5DOV0ovurvckzgRuf6bfGxc10=; b=RyEqrybCq5wNIzjbbf3ogHyhz8HybYAxTlrxwzWJpVUvM3sWqoYcGgq1qFF6uOkhlM xUL2VgOtq3+EYxVppPibK35+MdUJNcsuF53xT2iQwH2S5Oc0ZPKaXkypJwcosj4blvvM 1scv1R3doUC++o78gVmP98TiIdJlEpcxCMmOgQpIMWKe7WXwtslZgesTzLeNaWw092yJ PIEPuNDAgmU0/gqy7Hcng82Q8Z736hxCcUTNAgWHdu8kYDRg8WPb915m0ACReNrETSeY xaHk59LYxIX8dnXdMZKskL+WzevsIL+DrgLkJkG6GOJPaVKjMa3F6oeHnc/ajJFYGs6O dzcA== X-Gm-Message-State: ALoCoQnJpNkVXudSrKwdloR9+QACDI/rNLSebRmkCDbX9kzrsfU2LoGMoU1dm0KfzbZhcjFTSSGw X-Received: by 10.66.25.102 with SMTP id b6mr2817567pag.129.1381231113195; Tue, 08 Oct 2013 04:18:33 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id tz3sm39406818pbc.20.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 04:18:32 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/10] clk: socfpga: Use NULL instead of 0 Date: Tue, 8 Oct 2013 16:47:43 +0530 Message-Id: <1381231068-6053-5-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1381231068-6053-1-git-send-email-sachin.kamat@linaro.org> References: <1381231068-6053-1-git-send-email-sachin.kamat@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131008_071854_700650_CDF6AA08 X-CRM114-Status: GOOD ( 10.52 ) X-Spam-Score: -2.6 (--) Cc: sachin.kamat@linaro.org, mturquette@linaro.org 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=-4.5 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 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);