Title: [6662] trunk/arch/blackfin/mach-bf518/boards/ezbrd.c: [#5236] update DSA structure layout
Revision
6662
Author
vapier
Date
2009-06-11 08:23:13 -0500 (Thu, 11 Jun 2009)

Log Message

[#5236] update DSA structure layout

Modified Paths

Diff

Modified: trunk/arch/blackfin/mach-bf518/boards/ezbrd.c (6661 => 6662)


--- trunk/arch/blackfin/mach-bf518/boards/ezbrd.c	2009-06-11 13:09:11 UTC (rev 6661)
+++ trunk/arch/blackfin/mach-bf518/boards/ezbrd.c	2009-06-11 13:23:13 UTC (rev 6662)
@@ -119,13 +119,18 @@
 };
 
 #if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE)
+static struct dsa_chip_data ksz8893m_switch_chip_data = {
+	.mii_bus = &bfin_mii_bus.dev,
+	.port_names = {
+		NULL,
+		"eth%d",
+		"eth%d",
+		"cpu",
+	},
+};
 static struct dsa_platform_data ksz8893m_switch_data = {
-	.mii_bus = &bfin_mii_bus.dev,
 	.netdev = &bfin_mac_device.dev,
-	.port_names[0]	= NULL,
-	.port_names[1]	= "eth%d",
-	.port_names[2]	= "eth%d",
-	.port_names[3]	= "cpu",
+	.chip = &ksz8893m_switch_chip_data,
 };
 
 static struct platform_device ksz8893m_switch_device = {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to