Skip to contentSkip to conversation

NAND: davinci: update clock naming

PATCH In review Kevin Hilman 4 participants 4 messages May 30, 2009 – Jun 6, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NAND: davinci: update clock naming

DaVinci clock support has been updated in mainline. Update clock names accordingly.

---
 drivers/mtd/nand/davinci_nand.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/mtd/nand/davinci_nand.c +4 -3
index 0119220..02700f7 100644
@@ -407,16 +407,17 @@ static int __init nand_davinci_probe(struct platform_device *pdev)
 	}
 	info->chip.ecc.mode = ecc_mode;
 
-	info->clk = clk_get(&pdev->dev, "AEMIFCLK");
+	info->clk = clk_get(&pdev->dev, "aemif");
 	if (IS_ERR(info->clk)) {
 		ret = PTR_ERR(info->clk);
-		dev_dbg(&pdev->dev, "unable to get AEMIFCLK, err %d\n", ret);
+		dev_dbg(&pdev->dev, "unable to get AEMIF clock, err %d\n", ret);
 		goto err_clk;
 	}
 
 	ret = clk_enable(info->clk);
 	if (ret < 0) {
-		dev_dbg(&pdev->dev, "unable to enable AEMIFCLK, err %d\n", ret);
+		dev_dbg(&pdev->dev, "unable to enable AEMIF clock, err %d\n",
+			ret);
 		goto err_clk_enable;
 	}
 
Signature · 1 line
1.6.2.2
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Kevin Hilman

DaVinci clock support has been updated in mainline. Update clock names accordingly.

... and before 2.6.30-final ships, please.

Quoted 41 lines
---
 drivers/mtd/nand/davinci_nand.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/mtd/nand/davinci_nand.c +4 -3
index 0119220..02700f7 100644
@@ -407,16 +407,17 @@ static int __init nand_davinci_probe(struct platform_device *pdev)
 	}
 	info->chip.ecc.mode = ecc_mode;
 
-	info->clk = clk_get(&pdev->dev, "AEMIFCLK");
+	info->clk = clk_get(&pdev->dev, "aemif");
 	if (IS_ERR(info->clk)) {
 		ret = PTR_ERR(info->clk);
-		dev_dbg(&pdev->dev, "unable to get AEMIFCLK, err %d\n", ret);
+		dev_dbg(&pdev->dev, "unable to get AEMIF clock, err %d\n", ret);
 		goto err_clk;
 	}
 
 	ret = clk_enable(info->clk);
 	if (ret < 0) {
-		dev_dbg(&pdev->dev, "unable to enable AEMIFCLK, err %d\n", ret);
+		dev_dbg(&pdev->dev, "unable to enable AEMIF clock, err %d\n",
+			ret);
 		goto err_clk_enable;
 	}
 
Signature · 7 lines
1.6.2.2


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
#3 lore raw
In reply to Kevin Hilman
Quoted 7 lines · Kevin Hilman

DaVinci clock support has been updated in mainline. Update clock names accordingly.

---
 drivers/mtd/nand/davinci_nand.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

I've taken this to my l2-mtd-2.6.git. Will also ping dwmw2 about 2.6.30 merging of this patch.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)