Skip to contentSkip to conversation

Remove two redundent clk aliases

PATCH New Andrew Lunn 2 participants 4 messages Jan 10, 2013 – Jan 23, 2013

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

cover Remove two redundent clk aliases

Both USB and MDIO are now instantiated using DT and these DT nodes have clocks properties. Remove the now redundant clkdev aliases.

The first patch has no dependencies.

The second patch is dependent on the SDIO patchset "Device Tree binding for the mvsdio driver" by Thomas Petazzoni.

Andrew Lunn (2):
ARM: Kirkwood: Remove redundent USB clock alias
ARM: Kirkwood: Remove redundent SDIO clock alias

 arch/arm/mach-kirkwood/board-dt.c |    9 ---------
 1 file changed, 9 deletions(-)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/2 ARM: Kirkwood: Remove redundent USB clock alias

Now that USB is instantiated via DT, and the USB DT node has a clocks property, we no longer need a C coded clock alias. Remove it.

---
 arch/arm/mach-kirkwood/board-dt.c |    4 ----
 1 file changed, 4 deletions(-)
arch/arm/mach-kirkwood/board-dt.c +0 -4
index dae6883..59fdb56 100644
@@ -55,10 +55,6 @@ static void __init kirkwood_legacy_clk_init(void)
 	orion_clkdev_add("0", "pcie",
 			 of_clk_get_from_provider(&clkspec));
 
-	clkspec.args[0] = CGC_BIT_USB0;
-	orion_clkdev_add(NULL, "orion-ehci.0",
-			 of_clk_get_from_provider(&clkspec));
-
 	clkspec.args[0] = CGC_BIT_PEX1;
 	orion_clkdev_add("1", "pcie",
 			 of_clk_get_from_provider(&clkspec));
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/2 ARM: Kirkwood: Remove redundent SDIO clock alias

In reply to Andrew Lunn

Now that SDIO is instantiated via DT, and the SDIO DT node has a clocks property, we no longer need a C coded clock alias. Remove it.

---
 arch/arm/mach-kirkwood/board-dt.c |    5 -----
 1 file changed, 5 deletions(-)
arch/arm/mach-kirkwood/board-dt.c +0 -5
index 59fdb56..7bae36c 100644
@@ -62,11 +62,6 @@ static void __init kirkwood_legacy_clk_init(void)
 	clkspec.args[0] = CGC_BIT_GE1;
 	orion_clkdev_add(NULL, "mv643xx_eth_port.1",
 			 of_clk_get_from_provider(&clkspec));
-
-	clkspec.args[0] = CGC_BIT_SDIO;
-	orion_clkdev_add(NULL, "mvsdio",
-			 of_clk_get_from_provider(&clkspec));
-
 }
 
 static void __init kirkwood_of_clk_init(void)
Signature · 1 line
1.7.10.4
#3 lore raw

cover Remove two redundent clk aliases

In reply to Andrew Lunn
Quoted 9 lines · Andrew Lunn

Both USB and MDIO are now instantiated using DT and these DT nodes have clocks properties. Remove the now redundant clkdev aliases.

The first patch has no dependencies.

The second patch is dependent on the SDIO patchset "Device Tree binding for the mvsdio driver" by Thomas Petazzoni.

Quoted 6 lines

Andrew Lunn (2):
ARM: Kirkwood: Remove redundent USB clock alias
ARM: Kirkwood: Remove redundent SDIO clock alias

 arch/arm/mach-kirkwood/board-dt.c |    9 ---------
 1 file changed, 9 deletions(-)

Both applied to mvebu/boards. Normally, I would put this in mvebu/cleanup. However, the dependency on mvebu/drivers (mvsdio changes) meant putting it in boards removed any circular dependencies.

thx,

Jason.