From patchwork Sat Jul 29 15:54:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 795218 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xKVdg4DKlz9sMN for ; Sun, 30 Jul 2017 01:54:31 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752912AbdG2PyO (ORCPT ); Sat, 29 Jul 2017 11:54:14 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:52927 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752596AbdG2PyN (ORCPT ); Sat, 29 Jul 2017 11:54:13 -0400 X-IronPort-AV: E=Sophos;i="5.40,431,1496095200"; d="scan'208";a="285365834" Received: from 85-171-60-79.rev.numericable.fr (HELO [192.168.0.15]) ([85.171.60.79]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jul 2017 17:54:11 +0200 Date: Sat, 29 Jul 2017 17:54:10 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Corentin Labbe cc: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, peppe.cavallaro@st.com, alexandre.torgue@st.com, icenowy@aosc.io, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe , kbuild-all@01.org Subject: [PATCH] net-next: stmmac: dwmac-sun8i: fix of_table.cocci warnings Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 Signed-off-by: Fengguang Wu --- 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);