Thread (55 messages) flat view 55 messages, 4 authors, 2011-01-01
STALE5736d

[PATCH 07/10] ARM: mx28: add the second fec device registration

From: Shawn Guo <hidden>
Date: 2010-12-29 12:05:09

Hi Uwe,

On Wed, Dec 29, 2010 at 11:50:01AM +0100, Uwe Kleine-K?nig wrote:
Hello Shawn,
quoted
-static const struct fec_platform_data mx28_fec_pdata __initconst = {
-	.phy = PHY_INTERFACE_MODE_RMII,
+static struct fec_platform_data mx28_fec_pdata[] = {
+	{
+		/* fec0 */
+		.phy = PHY_INTERFACE_MODE_RMII,
+	}, {
+		/* fec1 */
+		.phy = PHY_INTERFACE_MODE_RMII,
+	},
 };
I think there is no need to duplicate the platform_data as mx28_add_fec
makes a copy anyhow.  Did you remove __initconst and const on purpose?
The mac field is different for fec0 and fec1 and needs to be
assigned in mx28evk_fec_get_mac.

-- 
Regards,
Shawn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help