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


Groups > linux.kernel > #1699335 > unrolled thread

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

Started byJulia Lawall <julia.lawall@lip6.fr>
First post2017-07-29 18:00 +0200
Last post2017-07-29 18:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] net-next: stmmac: dwmac-sun8i: fix of_table.cocci warnings Julia Lawall <julia.lawall@lip6.fr> - 2017-07-29 18:00 +0200

#1699335 — [PATCH] net-next: stmmac: dwmac-sun8i: fix of_table.cocci warnings

FromJulia Lawall <julia.lawall@lip6.fr>
Date2017-07-29 18:00 +0200
Subject[PATCH] net-next: stmmac: dwmac-sun8i: fix of_table.cocci warnings
Message-ID<u8CjM-4kJ-5@gated-at.bofh.it>
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 <clabbe.montjoie@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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(+)

--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
@@ -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);

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web