]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: mpc5121_nfc: adjust for OF based clock lookup
authorGerhard Sittig <gsi@denx.de>
Sat, 30 Nov 2013 22:51:32 +0000 (23:51 +0100)
committerAnatolij Gustschin <agust@denx.de>
Sun, 12 Jan 2014 17:53:05 +0000 (18:53 +0100)
after device tree based clock lookup became available, the NAND
flash driver need no longer use the previous global "nfc_clk" name,
but should use the "ipg" clock name specific to the OF node

Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/mtd/nand/mpc5121_nfc.c

index 439bc389641841dc05f79ab638f7010e4a9cd053..779e60d12f896f67196bbdd5f7b3338ccccd6742 100644 (file)
@@ -731,7 +731,7 @@ static int mpc5121_nfc_probe(struct platform_device *op)
        of_node_put(rootnode);
 
        /* Enable NFC clock */
-       clk = devm_clk_get(dev, "nfc_clk");
+       clk = devm_clk_get(dev, "ipg");
        if (IS_ERR(clk)) {
                dev_err(dev, "Unable to acquire NFC clock!\n");
                retval = PTR_ERR(clk);