Skip to contentSkip to conversation

IDE: palm_bk3710: convert clock usage after clkdev conversion

PATCH In review Kevin Hilman 3 participants 5 messages Jul 6, 2009 – Jul 14, 2009 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IDE: palm_bk3710: convert clock usage after clkdev conversion

DaVinci core code has converted to the new clkdev API so clock name strings are not needed. Instead, just the a 'struct device' pointer is needed.

---
Fix needed for 2.6.31

 drivers/ide/palm_bk3710.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ide/palm_bk3710.c +1 -1
index 3c1dc01..f8eddf0 100644
@@ -318,7 +318,7 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)
 	int i, rc;
 	struct ide_hw hw, *hws[] = { &hw };
 
-	clk = clk_get(&pdev->dev, "IDECLK");
+	clk = clk_get(&pdev->dev, NULL);
 	if (IS_ERR(clk))
 		return -ENODEV;
 
Signature · 1 line
1.6.3.3
Acked-by on v1 1/1
#1 lore raw

Hello.

Quoted 5 lines · Kevin Hilman

DaVinci core code has converted to the new clkdev API so clock name strings are not needed. Instead, just the a 'struct device' pointer is needed.

Quoted 11 lines

---
Fix needed for 2.6.31

 drivers/ide/palm_bk3710.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ide/palm_bk3710.c +0 -0
index 3c1dc01..f8eddf0 100644

drivers/ide/palm_bk3710.c static int __init palm_bk3710_probe(struct platform_device *pdev) · line 324

Quoted 8 lines
drivers/ide/palm_bk3710.c +1 -1
@@ -318,7 +318,7 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)
 	int i, rc;
 	struct ide_hw hw, *hws[] = { &hw };
 
-	clk = clk_get(&pdev->dev, "IDECLK");
+	clk = clk_get(&pdev->dev, NULL);
 	if (IS_ERR(clk))
 		return -ENODEV;
 

It doesn't seem strictly necessary for 2.6.31 -- only in the sense that
"IDECLK" isn't named so anymore, however, clk_get() should still work.

MBR, Sergei

#2 lore raw
Quoted 4 lines · Sergei Shtylyov

Hello.

Kevin Hilman wrote:

Quoted 10 lines
Quoted 5 lines

DaVinci core code has converted to the new clkdev API so clock name strings are not needed. Instead, just the a 'struct device' pointer is needed.

Quoted 2 lines

---
Fix needed for 2.6.31

Can this fix be merged for the .31-rc series please?

Thanks,

Kevin

Quoted 21 lines
Quoted 8 lines
 drivers/ide/palm_bk3710.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ide/palm_bk3710.c +0 -0
index 3c1dc01..f8eddf0 100644

drivers/ide/palm_bk3710.c static int __init palm_bk3710_probe(struct platform_device *pdev) · line 324

Quoted 7 lines
drivers/ide/palm_bk3710.c +1 -0
@@ -318,7 +318,7 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)
 	int i, rc;
 	struct ide_hw hw, *hws[] = { &hw };
 -	clk = clk_get(&pdev->dev, "IDECLK");
+	clk = clk_get(&pdev->dev, NULL);
 	if (IS_ERR(clk))
 		return -ENODEV;
 

It doesn't seem strictly necessary for 2.6.31 -- only in the sense
that "IDECLK" isn't named so anymore, however, clk_get() should still work.

MBR, Sergei

#3 lore raw

From: Kevin Hilman <[email protected]>
Date: Mon, 13 Jul 2009 14:01:55 -0700

Quoted 10 lines
Quoted 8 lines · Sergei Shtylyov

Hello.

Quoted 4 lines · Kevin Hilman

DaVinci core code has converted to the new clkdev API so clock name strings are not needed. Instead, just the a 'struct device' pointer is needed.

Quoted 12 lines
Quoted 6 lines
Quoted 1 line
Quoted 2 lines

---
Fix needed for 2.6.31

Can this fix be merged for the .31-rc series please?

Quoted 3 lines

It doesn't seem strictly necessary for 2.6.31 -- only in the sense
that "IDECLK" isn't named so anymore, however, clk_get() should still work.

Either it's needed or it isn't. It seems like it isn't, and since the rules for integrating changes in the RC series right now is strict, I'm only going to merge something if it is actually necessary.

#4 lore raw
Quoted 22 lines · David Miller

From: Kevin Hilman <[email protected]>
Date: Mon, 13 Jul 2009 14:01:55 -0700

Quoted 19 lines
Quoted 4 lines · Sergei Shtylyov

Hello.

Kevin Hilman wrote:

Quoted 10 lines
Quoted 5 lines

DaVinci core code has converted to the new clkdev API so clock name strings are not needed.  Instead, just the a 'struct device' pointer is needed.

Quoted 2 lines

---
Fix needed for 2.6.31

Can this fix be merged for the .31-rc series please?

Quoted 9 lines
Quoted 3 lines
Quoted 3 lines

   It doesn't seem strictly necessary for 2.6.31 -- only in the sense that "IDECLK" isn't named so anymore, however, clk_get() should still work.

Either it's needed or it isn't.  It seems like it isn't, and since the rules for integrating changes in the RC series right now is strict, I'm only going to merge something if it is actually necessary.

OK, after looking closer at clkdev, it looks like things will continue to work in .31 without this patch, so this is merely confusing, and not broken.

I'm ok if it waits until next merge window.

Thanks,

Kevin