Skip to content

Commit

Permalink
net: stmmac: Cocci spatch "of_table"
Browse files Browse the repository at this point in the history
Make sure (of/i2c/platform)_device_id tables are NULL terminated.
Found by coccinelle spatch "misc/of_table.cocci"

Signed-off-by: Thomas Meyer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
thomasmey authored and davem330 committed Sep 21, 2017
1 parent 687740c commit f0ef1f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ static int stmmac_dt_phy(struct plat_stmmacenet_data *plat,
{ .compatible = "allwinner,sun8i-h3-emac" },
{ .compatible = "allwinner,sun8i-v3s-emac" },
{ .compatible = "allwinner,sun50i-a64-emac" },
{},
};

/* If phy-handle property is passed from DT, use it as the PHY */
Expand Down

0 comments on commit f0ef1f4

Please sign in to comment.