From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: [PATCH net-next] net: phy: mdio-bcm-unimac: NULL-terminate unimac_mdio_ids Date: Fri, 29 Aug 2014 12:43:56 -0700 Message-ID: <1409341436-22900-1-git-send-email-f.fainelli@gmail.com> Cc: davem@davemloft.net, Florian Fainelli , Fengguang Wu To: netdev@vger.kernel.org Return-path: Received: from mail-pd0-f181.google.com ([209.85.192.181]:46317 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753094AbaH2Toa (ORCPT ); Fri, 29 Aug 2014 15:44:30 -0400 Received: by mail-pd0-f181.google.com with SMTP id fp1so1102944pdb.40 for ; Fri, 29 Aug 2014 12:44:30 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: drivers/net/phy/mdio-bcm-unimac.c:195:37-38: unimac_mdio_ids is not NULL terminated at line 195 Make sure of_device_id tables are NULL terminated Generated by: scripts/coccinelle/misc/of_table.cocci Signed-off-by: Fengguang Wu Signed-off-by: Florian Fainelli --- drivers/net/phy/mdio-bcm-unimac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/mdio-bcm-unimac.c b/drivers/net/phy/mdio-bcm-unimac.c index e6b08ceb9c37..5b643e588e8f 100644 --- a/drivers/net/phy/mdio-bcm-unimac.c +++ b/drivers/net/phy/mdio-bcm-unimac.c @@ -193,6 +193,7 @@ static struct of_device_id unimac_mdio_ids[] = { { .compatible = "brcm,genet-mdio-v2", }, { .compatible = "brcm,genet-mdio-v1", }, { .compatible = "brcm,unimac-mdio", }, + { /* sentinel */ }, }; static struct platform_driver unimac_mdio_driver = { -- 1.9.1