From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753297AbdJUIZv (ORCPT ); Sat, 21 Oct 2017 04:25:51 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:47483 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752778AbdJUIZk (ORCPT ); Sat, 21 Oct 2017 04:25:40 -0400 X-Google-Smtp-Source: ABhQp+R6bwCDOw4+Y+1P+m5DIXWzcR+OBUmuZnqhFsif2+9tQKGUThhREUmmfM5YWjHRxZwUOM+chw== From: Matthias Brugger To: sean.wang@mediatek.com, chenglin.xu@mediatek.com, chen.zhong@mediatek.com, arvind.yadav.cs@gmail.com, christophe.jaillet@wanadoo.fr, robh@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Matthias Brugger Subject: [PATCH 2/2] soc: mediatek: pwrap: fix fatal compiler error Date: Sat, 21 Oct 2017 10:25:29 +0200 Message-Id: <20171021082529.31351-2-matthias.bgg@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171021082529.31351-1-matthias.bgg@gmail.com> References: <20171021082529.31351-1-matthias.bgg@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When adding the MT6380 compatible, the sentinel for of_device_id was deleted, which leades to the following compiler error: FATAL: drivers/soc/mediatek/mtk-pmic-wrap: struct of_device_id is not terminated with a NULL entry! Fix this by adding the sentinel again. Signed-off-by: Matthias Brugger --- drivers/soc/mediatek/mtk-pmic-wrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index 912edf93c192..e9e054a15b7d 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -1380,6 +1380,7 @@ static const struct of_device_id of_slave_match_tbl[] = { }, { .compatible = "mediatek,mt6397", .data = &pmic_mt6397, + }, { /* sentinel */ } }; -- 2.14.2