From patchwork Sat Oct 21 08:25:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 10021275 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D065E60375 for ; Sat, 21 Oct 2017 08:26:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C393A28BD5 for ; Sat, 21 Oct 2017 08:26:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B80F028E10; Sat, 21 Oct 2017 08:26:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4100A28BD5 for ; Sat, 21 Oct 2017 08:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=GYIPvw9vKnHIkk0JPSG5dhYw7p0/P9Z9BMgy9jdccko=; b=YWEb5H8wXNwzLSv6ctvmHgoN3K WL5qUBy0BNflvlOcYiu+KO0YCqz5Asx6VafpZswz48yTns/ggke7vyN4PDh7SaIe922MvSpwHsNL+ 60Ru9k3jZKCNR/Flp/XC9WIia149yMPfqcpEssNVAYaknDo1J12cExZ9+GcZUOBGiy/i5AVaO5DxX qAxnaWRSQTDIr/T3M1t8+zJaoNsUALlNNPs+Nl7v6UJEkZUORJN40keD3Ju+yfjh6hdrgZaVnA6IW mePWJLZtSHj/VJwa6bIa+zIWXi+JupBNOJaXxxlft8hibFiNKBKGI4cIyNEejWJxzlZHdY8AXw3OU Zji9TXxA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e5p6c-0005Ur-4g; Sat, 21 Oct 2017 08:26:06 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e5p6X-0005SZ-QF; Sat, 21 Oct 2017 08:26:03 +0000 Received: by mail-wr0-x243.google.com with SMTP id l8so211408wre.12; Sat, 21 Oct 2017 01:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jj6aqUpewaMuWPkuh2rJi2wK4iJYMUGWM2JMaVZ0Gh4=; b=YPFwHQi/iEHiDq6QZox/OuaoBnsh8BMlSNqZSpD/Aac9rX3PVSCqeGwJPdUmN7BzuB pe/LHucuHEDwhNk0w3QCjXC4W65qtFoGOKPw+2odG9hLMF6s6yBigkgOpIBvJNpgn4AK M1vlqsgzTgb9ElgG0C9dYm6dt1ssmjC6LU8biM15aSRWb8r1OleQ4OL+ArU0RhFtkqkg +zUrrwItud8n/7UfBeCLKI3QiIIfhxC7zV60KLMpqIjQLK75XhEUy/m3Kws99Q/gkuZR hoAXJ4fGYI2JbNsD4us9wSLc14nQ/XV9WxbwVN8emeWhzt26Tos+VNRHIjmfkUTTYNjL Y0nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jj6aqUpewaMuWPkuh2rJi2wK4iJYMUGWM2JMaVZ0Gh4=; b=Wfxt9UenxdbISJdeYLTp+Wn1J0k/FwvOc4rTolc8Kr7h+zh9o7xTvAbBQYdP1s4tC8 zTVRxtRvw8FRsIEa/oI7Z8dYi9vqRJ9U+4/aNzr8P7VAzshnt6sYD9gu9Gfi4NPyGKwi WfPcQ8FgpC1q0yxYpvfxo144YOPkalEEzcUT96oNzWG55CragQovPuh67aZJohP+5pUy gGuPhGvlZ3XNh/I5fbmZI5pBnO6Vg8v5v4LUztxKMCr3y4pO6L1cxnZiRxc6ud5vMboc biORHXJESjgmB0/IIdCUTZBoqhnAncBqErXNX475bk9iaocr3QTNTRkeKm92Bh+QzPer 21Yw== X-Gm-Message-State: AMCzsaUT/NSWtMtHBHtRTO7mffBqmveE2+hwA9Eo25QS5Fk8ow5AysK/ 4MbWnBkSnDW94Vjb68Zx2bE= X-Google-Smtp-Source: ABhQp+R6bwCDOw4+Y+1P+m5DIXWzcR+OBUmuZnqhFsif2+9tQKGUThhREUmmfM5YWjHRxZwUOM+chw== X-Received: by 10.223.163.4 with SMTP id c4mr6127909wrb.117.1508574338793; Sat, 21 Oct 2017 01:25:38 -0700 (PDT) Received: from ziggy.de ([92.57.80.122]) by smtp.gmail.com with ESMTPSA id k57sm4493428wrf.95.2017.10.21.01.25.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Oct 2017 01:25:38 -0700 (PDT) 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171021_012602_090282_FAF6FD91 X-CRM114-Status: GOOD ( 11.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matthias Brugger , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Sean Wang --- 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 */ } };