mtd: mxc_nand: Adapt the clock name to the new clock framework
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 5 Sep 2012 14:52:27 +0000 (11:52 -0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:43:29 +0000 (15:43 +0100)
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>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c

index 043e989f0578d5838cfd6cb30b281f0360fa9aff..8ec7cc007deebe2035fb3585d52e1043d79d3832 100644 (file)
@@ -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);