mtd: mxc_nand: Adapt the clock name to the new clock framework

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:47 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=24b82d3c350dfc16cd4a7de87ca0959ff5fbaa15
Commit:     24b82d3c350dfc16cd4a7de87ca0959ff5fbaa15
Parent:     ddf16d620bd80b3c99160acd336c985b70399e37
Author:     Fabio Estevam <fabio.estevam at freescale.com>
AuthorDate: Wed Sep 5 11:52:27 2012 -0300
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 29 15:43:29 2012 +0100

    mtd: mxc_nand: Adapt the clock name to the new clock framework
    
    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 <fabio.estevam at freescale.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/mxc_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 043e989..8ec7cc0 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1399,7 +1399,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);
 



More information about the linux-mtd-cvs mailing list