]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: mx28: update clock and device name for dual fec support
authorShawn Guo <shawn.guo@freescale.com>
Thu, 6 Jan 2011 07:13:14 +0000 (15:13 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 11 Jan 2011 12:59:39 +0000 (13:59 +0100)
Change device name from "fec" to "imx28-fec", so that fec driver
can distinguish mx28.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mxs/clock-mx28.c
arch/arm/mach-mxs/devices/platform-fec.c

index 74e2103c6011eb2afdc20967b302feb7e6609d50..fbb8d7424d0c9c2c16079350fbe0c0e19fd57067 100644 (file)
@@ -603,6 +603,8 @@ _DEFINE_CLOCK(fec_clk, ENET, DISABLE, &hbus_clk);
 
 static struct clk_lookup lookups[] = {
        _REGISTER_CLOCK("mxs-duart.0", NULL, uart_clk)
+       _REGISTER_CLOCK("imx28-fec.0", NULL, fec_clk)
+       _REGISTER_CLOCK("imx28-fec.1", NULL, fec_clk)
        _REGISTER_CLOCK("fec.0", NULL, fec_clk)
        _REGISTER_CLOCK("rtc", NULL, rtc_clk)
        _REGISTER_CLOCK("pll2", NULL, pll2_clk)
index c08168cf3dec0094fd533d4341d8953f108557b2..c42dff72b46cde4dfe8b4ed7345f260c5f95eac9 100644 (file)
@@ -45,6 +45,6 @@ struct platform_device *__init mxs_add_fec(
                },
        };
 
-       return mxs_add_platform_device("fec", data->id,
+       return mxs_add_platform_device("imx28-fec", data->id,
                        res, ARRAY_SIZE(res), pdata, sizeof(*pdata));
 }