From patchwork Wed Sep 5 14:52:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 181881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0BCF02C0094 for ; Thu, 6 Sep 2012 00:53:43 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T9GyH-0003uN-4u; Wed, 05 Sep 2012 14:52:49 +0000 Received: from mail-gh0-f177.google.com ([209.85.160.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T9GyB-0003u6-93 for linux-mtd@lists.infradead.org; Wed, 05 Sep 2012 14:52:43 +0000 Received: by ghbf20 with SMTP id f20so96285ghb.36 for ; Wed, 05 Sep 2012 07:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=v4vh4osdor7t2dbZSiYIhc2qdRDUBIRSo1STMGufaWQ=; b=UEVS/MPpgij8h1W3fU3ceXDgnE+3LBbXIpx87+EktJMpEHb+PXav9bYbfboVIbAt4w dXVWCmkq2QcOi7I00mTR3eVzMpgh4D9SpFGH7uB2X3CT1CgMfA1PxxyZsBpTYsPC/GUA 32llHouFe8J8ZyUG+df0YvzvPcK+aivCgNScJ6KyxTte3KUC4KsfWwaS6uKBa9EOl7wf NlSOV9gmE3M/BVaQ1YOgUJVq39s9q6J54MvaqVHZvsYaIiGdyi2hVIaTF6GV2KYGVubQ UP3E/03WtLcWxQ/sbdyClLQF4jaPZ7QNmdkJ0c6Aqc1CGk5KnUkRhYcrz3jix6TuCHrh C0vA== Received: by 10.236.151.18 with SMTP id a18mr19500680yhk.14.1346856761781; Wed, 05 Sep 2012 07:52:41 -0700 (PDT) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([201.82.136.222]) by mx.google.com with ESMTPS id e5sm3380017yhi.12.2012.09.05.07.52.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Sep 2012 07:52:40 -0700 (PDT) From: Fabio Estevam To: artem.bityutskiy@linux.intel.com Subject: [PATCH] mtd: mxc_nand: Adapt the clock name to the new clock framework Date: Wed, 5 Sep 2012 11:52:27 -0300 Message-Id: <1346856747-32694-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , linux-mtd@lists.infradead.org, kernel@pengutronix.de X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Fabio Estevam With the new i.mx clock framework the mxc_nand clock is registered as: clk_register_clkdev(clk[nfc_gate], NULL, "mxc_nand");0") So we do not need to pass "nfc" string and can use NULL instead. Signed-off-by: Fabio Estevam --- drivers/mtd/nand/mxc_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index cc8b1e1..b0c81bf 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -1425,7 +1425,7 @@ static int __devinit mxcnd_probe(struct platform_device *pdev) this->write_buf = mxc_nand_write_buf; this->read_buf = mxc_nand_read_buf; - host->clk = devm_clk_get(&pdev->dev, "nfc"); + host->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(host->clk)) return PTR_ERR(host->clk);