diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-09-21 02:24:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 18:26:26 -0400 |
commit | f0ef1f4f2b772c0a1c8b35a6ae3edf974cc110dd (patch) | |
tree | 69422bbf4be127004f88f702ac51aa7036f7fc24 | |
parent | 687740cebbea7ec56da13b82be6be6d4164e5bb4 (diff) |
net: stmmac: Cocci spatch "of_table"
Make sure (of/i2c/platform)_device_id tables are NULL terminated.
Found by coccinelle spatch "misc/of_table.cocci"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index a366b3747eeb..8a280b48e3a9 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | |||
@@ -315,6 +315,7 @@ static int stmmac_dt_phy(struct plat_stmmacenet_data *plat, | |||
315 | { .compatible = "allwinner,sun8i-h3-emac" }, | 315 | { .compatible = "allwinner,sun8i-h3-emac" }, |
316 | { .compatible = "allwinner,sun8i-v3s-emac" }, | 316 | { .compatible = "allwinner,sun8i-v3s-emac" }, |
317 | { .compatible = "allwinner,sun50i-a64-emac" }, | 317 | { .compatible = "allwinner,sun50i-a64-emac" }, |
318 | {}, | ||
318 | }; | 319 | }; |
319 | 320 | ||
320 | /* If phy-handle property is passed from DT, use it as the PHY */ | 321 | /* If phy-handle property is passed from DT, use it as the PHY */ |