Title: [6054] trunk/arch/blackfin: Add platform device mii-bus for bfin-mac driver to fix bug [#4850].

Diff

Modified: trunk/arch/blackfin/mach-bf527/boards/cm_bf527.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf527/boards/cm_bf527.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf527/boards/cm_bf527.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -403,8 +403,13 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -918,6 +923,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 

Modified: trunk/arch/blackfin/mach-bf527/boards/ezbrd.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf527/boards/ezbrd.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf527/boards/ezbrd.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -208,8 +208,13 @@
 
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -718,6 +723,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 

Modified: trunk/arch/blackfin/mach-bf527/boards/ezkit.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf527/boards/ezkit.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf527/boards/ezkit.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -425,8 +425,13 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -986,6 +991,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 

Modified: trunk/arch/blackfin/mach-bf537/boards/cm_bf537.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf537/boards/cm_bf537.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf537/boards/cm_bf537.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -479,8 +479,13 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -591,6 +596,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 

Modified: trunk/arch/blackfin/mach-bf537/boards/generic_board.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf537/boards/generic_board.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf537/boards/generic_board.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -262,8 +262,13 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -662,6 +667,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 

Modified: trunk/arch/blackfin/mach-bf537/boards/minotaur.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf537/boards/minotaur.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf537/boards/minotaur.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -61,8 +61,13 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -324,6 +329,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 

Modified: trunk/arch/blackfin/mach-bf537/boards/pnav10.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf537/boards/pnav10.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf537/boards/pnav10.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -198,8 +198,13 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -529,6 +534,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 

Modified: trunk/arch/blackfin/mach-bf537/boards/stamp.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf537/boards/stamp.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf537/boards/stamp.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -321,8 +321,13 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -1215,6 +1220,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 

Modified: trunk/arch/blackfin/mach-bf537/boards/tcm_bf537.c (6053 => 6054)


--- trunk/arch/blackfin/mach-bf537/boards/tcm_bf537.c	2009-02-03 16:51:12 UTC (rev 6053)
+++ trunk/arch/blackfin/mach-bf537/boards/tcm_bf537.c	2009-02-04 03:49:14 UTC (rev 6054)
@@ -481,8 +481,13 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+static struct platform_device bfin_mii_bus = {
+	.name = "bfin_mii_bus",
+};
+
 static struct platform_device bfin_mac_device = {
 	.name = "bfin_mac",
+	.dev.platform_data = &bfin_mii_bus,
 };
 #endif
 
@@ -593,6 +598,7 @@
 #endif
 
 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
+	&bfin_mii_bus,
 	&bfin_mac_device,
 #endif
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to