From patchwork Thu Sep 21 06:24:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Meyer X-Patchwork-Id: 9963341 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 C99916020C for ; Thu, 21 Sep 2017 06:26:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA8DB281B7 for ; Thu, 21 Sep 2017 06:26:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF459285D3; Thu, 21 Sep 2017 06:26:08 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 5BD33281B7 for ; Thu, 21 Sep 2017 06:26:08 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:In-Reply-To:References:Message-ID: Mime-Version:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Sa/YgOfvfG0mQJwFc/Obi2JZCSXgpIeka3CeXbDK+UI=; b=eieqe2bri9KOxS kC+t7U6V1XtaR7ofxkiuenJKmldNgwZBIe0VtrHjjer2+Ct07i3spF7O87+IF+hEgEjHtB0ZTXBk0 FJ32exkRQuA2lUw1QnuQwy9W/iBO55AdxxDaFRGKdiPlpV9/j5uItddT1CKBwE9E0Ba9WFYx3Fkhk bhZ1nmU3cd7i8eYTP+rvy1Tfp/3fta833QCjMJ/j+W5GodpwJZq0zQfYXb/PVdF/gyzhYOTF1eVu8 Z0Dx5Qnhr3idhGyendksYGpu/JFHrpzvK4WM5xVtKi30eUyd55JAOFg73ScbEXWz4aRXvug2D4ggS sSGahgMbLoA035Cz7tDQ==; 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 1duuvr-0007Jn-0V; Thu, 21 Sep 2017 06:25:55 +0000 Received: from www17.your-server.de ([213.133.104.17]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1duuvk-0007Ci-9q; Thu, 21 Sep 2017 06:25:51 +0000 Received: from [95.222.26.195] (helo=olymp) by www17.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1duuvM-000328-Gc; Thu, 21 Sep 2017 08:25:24 +0200 Subject: [PATCH 1/3] ARM: mediatek: Cocci spatch "of_table" From: Thomas Meyer To: matthias.bgg@gmail.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Mime-Version: 1.0 Message-ID: <1505974912018-1713366490-1-diffsplit-thomas@m3y3r.de> References: <1505974912018-1637125348-0-diffsplit-thomas@m3y3r.de> In-Reply-To: <1505974912018-1637125348-0-diffsplit-thomas@m3y3r.de> Date: Thu, 21 Sep 2017 08:24:27 +0200 X-Mailer: Evolution 3.22.6-1 X-Authenticated-Sender: thomas@m3y3r.de X-Virus-Scanned: Clear (ClamAV 0.99.2/23858/Thu Sep 21 02:46:36 2017) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_232548_516519_2D86DA40 X-CRM114-Status: UNSURE ( 5.84 ) X-CRM114-Notice: Please train this message. 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: , 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 Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer diff -u -p a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c --- a/arch/arm/mach-mediatek/platsmp.c +++ b/arch/arm/mach-mediatek/platsmp.c @@ -54,12 +54,14 @@ static const struct of_device_id mtk_tz_ { .compatible = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot }, { .compatible = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot }, { .compatible = "mediatek,mt2701", .data = &mtk_mt8135_tz_boot }, + {}, }; static const struct of_device_id mtk_smp_boot_infos[] __initconst = { { .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot }, { .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot }, { .compatible = "mediatek,mt7623a", .data = &mtk_mt7623_boot }, + {}, }; static void __iomem *mtk_smp_base;