[PATCH 2/2] net/fec: fix unterminated platform_device_id table

Subsystems: networking drivers, the rest

STALE5638d

2 messages, 2 authors, 2011-02-28 · open the first message on its own page

[PATCH 2/2] net/fec: fix unterminated platform_device_id table

From: Axel Lin <hidden>
Date: 2011-02-23 09:25:32

The platform_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin <redacted>
---
 drivers/net/fec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index 74798be..f8a81ec 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -74,7 +74,8 @@ static struct platform_device_id fec_devtype[] = {
 	}, {
 		.name = "imx28-fec",
 		.driver_data = FEC_QUIRK_ENET_MAC | FEC_QUIRK_SWAP_FRAME,
-	}
+	},
+	{ }
 };
 
 static unsigned char macaddr[ETH_ALEN];
-- 
1.7.2

Re: [PATCH 2/2] net/fec: fix unterminated platform_device_id table

From: David Miller <davem@davemloft.net>
Date: 2011-02-28 20:35:24

From: Axel Lin <redacted>
Date: Wed, 23 Feb 2011 17:28:46 +0800
The platform_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help