Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: mpc5121_nfc: adjust for OF based clock lookup

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>

authored by

Gerhard Sittig and committed by
Anatolij Gustschin
10de271f d77276c4

+1 -1
+1 -1
drivers/mtd/nand/mpc5121_nfc.c
··· 731 731 of_node_put(rootnode); 732 732 733 733 /* Enable NFC clock */ 734 - clk = devm_clk_get(dev, "nfc_clk"); 734 + clk = devm_clk_get(dev, "ipg"); 735 735 if (IS_ERR(clk)) { 736 736 dev_err(dev, "Unable to acquire NFC clock!\n"); 737 737 retval = PTR_ERR(clk);