clk: ux500: Provide device enumeration number suffix for SMSC911x
authorLee Jones <lee.jones@linaro.org>
Wed, 8 May 2013 13:29:03 +0000 (14:29 +0100)
committerMike Turquette <mturquette@linaro.org>
Wed, 29 May 2013 18:52:18 +0000 (11:52 -0700)
First Ethernet device has a ".0" appended onto the device name. It
appears that we need this in order to obtain the correct clock.

Without this fix Ethernet does not function on Ux500 devices, which is a
regression.

Cc: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: improved changelog]

drivers/clk/ux500/u8500_clk.c

index 0b4f35a5ffc273b45cc602f1a4f819d18cd43b86..80069c370a47a1c560f05929ce7bd2aedb651514 100644 (file)
@@ -325,7 +325,7 @@ void u8500_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
        clk = clk_reg_prcc_pclk("p3_pclk0", "per3clk", clkrst3_base,
                                BIT(0), 0);
        clk_register_clkdev(clk, "fsmc", NULL);
-       clk_register_clkdev(clk, NULL, "smsc911x");
+       clk_register_clkdev(clk, NULL, "smsc911x.0");
 
        clk = clk_reg_prcc_pclk("p3_pclk1", "per3clk", clkrst3_base,
                                BIT(1), 0);