Skip to contentSkip to conversation

net-next: stmmac: dwmac-sun8i: fix of_table.cocci warnings

PATCH In review Julia Lawall 2 participants 2 messages Jul 29, 2017 – Aug 1, 2017

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net-next: stmmac: dwmac-sun8i: fix of_table.cocci warnings

Make sure (of/i2c/platform)_device_id tables are NULL terminated

Generated by: scripts/coccinelle/misc/of_table.cocci

Fixes d5dbe1976d52 ("net-next: stmmac: dwmac-sun8i: choose internal PHY via compatible")
CC Corentin Labbe <[email protected]>

---

url:    https://github.com/0day-ci/linux/commits/Corentin-Labbe/dt-bindings-net-add-compatible-for-internal-sun8i-h3-sun8i-v3s-PHYs/20170729-174950
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
 dwmac-sun8i.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +1 -0
@@ -892,6 +892,7 @@ static int sun8i_dwmac_probe(struct plat
 	static const struct of_device_id internal_phys[] = {
 		{ .compatible = "allwinner,sun8i-h3-ephy" },
 		{ .compatible = "allwinner,sun8i-v3s-ephy" },
+		{},
 	};
 
 	ret = stmmac_get_platform_resources(pdev, &stmmac_res);
maintainer
#1 lore raw

From: Julia Lawall <[email protected]>
Date: Sat, 29 Jul 2017 17:54:10 +0200 (CEST)

Quoted 7 lines

Make sure (of/i2c/platform)_device_id tables are NULL terminated

Generated by: scripts/coccinelle/misc/of_table.cocci

Fixes d5dbe1976d52 ("net-next: stmmac: dwmac-sun8i: choose internal PHY via compatible")
CC Corentin Labbe <[email protected]>

This change seems to be no longer relevant.