netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: phy: mdio-bcm-unimac: NULL-terminate unimac_mdio_ids
@ 2014-08-29 19:43 Florian Fainelli
  2014-09-02  3:42 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2014-08-29 19:43 UTC (permalink / raw)
  To: netdev; +Cc: davem, Florian Fainelli, Fengguang Wu

drivers/net/phy/mdio-bcm-unimac.c:195:37-38: unimac_mdio_ids is not NULL
terminated at line 195

Make sure of_device_id tables are NULL terminated
Generated by: scripts/coccinelle/misc/of_table.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/net/phy/mdio-bcm-unimac.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/phy/mdio-bcm-unimac.c b/drivers/net/phy/mdio-bcm-unimac.c
index e6b08ceb9c37..5b643e588e8f 100644
--- a/drivers/net/phy/mdio-bcm-unimac.c
+++ b/drivers/net/phy/mdio-bcm-unimac.c
@@ -193,6 +193,7 @@ static struct of_device_id unimac_mdio_ids[] = {
 	{ .compatible = "brcm,genet-mdio-v2", },
 	{ .compatible = "brcm,genet-mdio-v1", },
 	{ .compatible = "brcm,unimac-mdio", },
+	{ /* sentinel */ },
 };
 
 static struct platform_driver unimac_mdio_driver = {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] net: phy: mdio-bcm-unimac: NULL-terminate unimac_mdio_ids
  2014-08-29 19:43 [PATCH net-next] net: phy: mdio-bcm-unimac: NULL-terminate unimac_mdio_ids Florian Fainelli
@ 2014-09-02  3:42 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-09-02  3:42 UTC (permalink / raw)
  To: f.fainelli; +Cc: netdev, fengguang.wu

From: Florian Fainelli <f.fainelli@gmail.com>
Date: Fri, 29 Aug 2014 12:43:56 -0700

> drivers/net/phy/mdio-bcm-unimac.c:195:37-38: unimac_mdio_ids is not NULL
> terminated at line 195
> 
> Make sure of_device_id tables are NULL terminated
> Generated by: scripts/coccinelle/misc/of_table.cocci
> 
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-02  3:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29 19:43 [PATCH net-next] net: phy: mdio-bcm-unimac: NULL-terminate unimac_mdio_ids Florian Fainelli
2014-09-02  3:42 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).