]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: stmmac: Cocci spatch "of_table"
authorThomas Meyer <thomas@m3y3r.de>
Thu, 21 Sep 2017 06:24:27 +0000 (08:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 22:26:26 +0000 (15:26 -0700)
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index a366b3747eeb58aebf730fde9c44c0a94af70491..8a280b48e3a9fd0c7ada914f2ceea3618e9e34cf 100644 (file)
@@ -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 */