Commit 4559154a authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: phy: mdio-bcm-unimac: NULL-terminate unimac_mdio_ids

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 61b7363f
...@@ -193,6 +193,7 @@ static struct of_device_id unimac_mdio_ids[] = { ...@@ -193,6 +193,7 @@ static struct of_device_id unimac_mdio_ids[] = {
{ .compatible = "brcm,genet-mdio-v2", }, { .compatible = "brcm,genet-mdio-v2", },
{ .compatible = "brcm,genet-mdio-v1", }, { .compatible = "brcm,genet-mdio-v1", },
{ .compatible = "brcm,unimac-mdio", }, { .compatible = "brcm,unimac-mdio", },
{ /* sentinel */ },
}; };
static struct platform_driver unimac_mdio_driver = { static struct platform_driver unimac_mdio_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment