Browse Source

powerpc/mpc8313erdb: fix kernel panic because mdio device is not probed

Probe the new mdio node added by b31a1d8b.  Fix kernel panic problem when
gianfar driver wants to get the of_platform_device of that mdio.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Li Yang 16 years ago
parent
commit
344b62870d

+ 1 - 1
arch/powerpc/boot/dts/mpc8313erdb.dts

@@ -185,7 +185,7 @@
 			cell-index = <0>;
 			cell-index = <0>;
 			device_type = "network";
 			device_type = "network";
 			model = "eTSEC";
 			model = "eTSEC";
-			compatible = "gianfar", "simple-bus";
+			compatible = "gianfar";
 			reg = <0x24000 0x1000>;
 			reg = <0x24000 0x1000>;
 			local-mac-address = [ 00 00 00 00 00 00 ];
 			local-mac-address = [ 00 00 00 00 00 00 ];
 			interrupts = <37 0x8 36 0x8 35 0x8>;
 			interrupts = <37 0x8 36 0x8 35 0x8>;

+ 1 - 0
arch/powerpc/platforms/83xx/mpc831x_rdb.c

@@ -71,6 +71,7 @@ static int __init mpc831x_rdb_probe(void)
 
 
 static struct of_device_id __initdata of_bus_ids[] = {
 static struct of_device_id __initdata of_bus_ids[] = {
 	{ .compatible = "simple-bus" },
 	{ .compatible = "simple-bus" },
+	{ .compatible = "gianfar" },
 	{},
 	{},
 };
 };