Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736387
| From | Thomas Meyer <thomas@m3y3r.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/3] net: stmmac: Cocci spatch "of_table" |
| Date | 2017-09-21 08:30 +0200 |
| Message-ID | <us39M-5A5-5@gated-at.bofh.it> (permalink) |
| References | <us39M-5A5-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 */
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 3/3] net: stmmac: Cocci spatch "of_table" Thomas Meyer <thomas@m3y3r.de> - 2017-09-21 08:30 +0200
csiph-web