net: phy: mdio-bcm-unimac: NULL-terminate unimac_mdio_ids
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 29 Aug 2014 19:43:56 +0000 (12:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 03:41:45 +0000 (20:41 -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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bcm-unimac.c

index e6b08ceb9c375541f6098812758508e7560322fb..5b643e588e8fdd688ad3b65c4ef3b3a7bb978b79 100644 (file)
@@ -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 = {