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

login
register
mail settings
Submitter Fabio Estevam
Date Sept. 5, 2012, 2:52 p.m.
Message ID <1346856747-32694-1-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/181881/
State Accepted
Commit 24b82d3c350dfc16cd4a7de87ca0959ff5fbaa15
Headers show

Comments

Fabio Estevam - Sept. 5, 2012, 2:52 p.m.
From: Fabio Estevam <fabio.estevam@freescale.com>

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@freescale.com>
---
 drivers/mtd/nand/mxc_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Artem Bityutskiy - Sept. 22, 2012, 2:59 p.m.
On Wed, 2012-09-05 at 11:52 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> 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@freescale.com>

Pushed to l2-mtd.git, thanks!

Patch

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);