From: Fabio Estevam Date: Wed, 5 Sep 2012 14:52:27 +0000 (-0300) Subject: mtd: mxc_nand: Adapt the clock name to the new clock framework X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=24b82d3c350dfc16cd4a7de87ca0959ff5fbaa15;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 043e989f0578..8ec7cc007dee 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);