From: Thomas Meyer Date: Thu, 21 Sep 2017 06:24:27 +0000 (+0200) Subject: net: stmmac: Cocci spatch "of_table" X-Git-Tag: v4.13.6~132 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0476f91d987466884ba8c529aa29a839c4df3380;p=users%2Fdwmw2%2Flinux.git net: stmmac: Cocci spatch "of_table" [ Upstream commit f0ef1f4f2b772c0a1c8b35a6ae3edf974cc110dd ] Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index a366b3747eeb5..8a280b48e3a9f 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, { .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 */