Skip to content

Commit

Permalink
net: phy: mdio-bcm-unimac: NULL-terminate unimac_mdio_ids
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Sep 2, 2014
1 parent 61b7363 commit 4559154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/phy/mdio-bcm-unimac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 4559154

Please sign in to comment.