Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1736387 > unrolled thread

[PATCH 3/3] net: stmmac: Cocci spatch "of_table"

Started byThomas Meyer <thomas@m3y3r.de>
First post2017-09-21 08:30 +0200
Last post2017-09-21 08:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] net: stmmac: Cocci spatch "of_table" Thomas Meyer <thomas@m3y3r.de> - 2017-09-21 08:30 +0200

#1736387 — [PATCH 3/3] net: stmmac: Cocci spatch "of_table"

FromThomas Meyer <thomas@m3y3r.de>
Date2017-09-21 08:30 +0200
Subject[PATCH 3/3] net: stmmac: Cocci spatch "of_table"
Message-ID<us39M-5A5-5@gated-at.bofh.it>
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>
---

diff -u -p a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
--- 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_stm
 		{ .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 */

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web