From patchwork Fri Feb 18 00:09:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12750784 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 511B6C433EF for ; Fri, 18 Feb 2022 00:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xlV3avWSVD/xUT3Lp6T1QbmFvJtNce/jDZ0HRqwy7oo=; b=jKJ4kZI6WMvh2L znUbLkhK8fnAVdTMKfnPANIIYPdVvV5gLKuBMAfDW70ZY0YGpntbYfyxEXOimELoJfo5uW0G1DnSI mHnOGOTH95o57kZOtkhM48qZgK5TMnHRd2aFayebDRyuyppTONJJP2+eQ3ZwvYlxfugI5Lj7NjeWj l8PLoD3CCv2bR3MOXPil41Fer0X6Xnkq95I7zl89qbvWyR7quaqlR+AQc7IMhRgYnVl1Ictbikktz 3DXa1jaeq5z7Xut3wR+2Ws/daUkO1a6q+FLswpae5cVX1W4+VTdrl1kCvWdbCeWksU/XaadiEhOIu 5ywXPYK69ic6LhJAqPHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKqqI-00CXbP-Cx; Fri, 18 Feb 2022 00:09:46 +0000 Received: from mout.gmx.net ([212.227.17.22]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKqqE-00CXZq-IV for linux-arm-kernel@lists.infradead.org; Fri, 18 Feb 2022 00:09:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645142969; bh=4ltnXb8snLk/03M1NrAk+PfKScHzFXRMa+IBBhisrD4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=M/bl8FoIpMg0PQD26wHWBsbu4zVsgfaZz3wI0jy9lYvNsQTYiPJR1uajlQVEoTui2 CENcRkOkKRHjHMNlWrRENGOR3alKvUfuhEllmaGGEk/WII/LKPUvGo/OV2Mjt7CXtv do5UgR3lyJHtP7NtJ2JWZUwMYyrKUqkO9flD6iQo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MtOGU-1o7bPC49z4-00uptg; Fri, 18 Feb 2022 01:09:29 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Jonath?= =?utf-8?q?an_Neusch=C3=A4fer?= , Keguang Zhang , Michael Turquette , Stephen Boyd , Yang Ling Subject: [PATCH v4 2/5] clk: loongson1: Terminate clk_div_table with sentinel element Date: Fri, 18 Feb 2022 01:09:18 +0100 Message-Id: <20220218000922.134857-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218000922.134857-1-j.neuschaefer@gmx.net> References: <20220218000922.134857-1-j.neuschaefer@gmx.net> M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tPD/Mp7QSSOj+JEEYljDOCqs3G535AvF5vgbNLhumr M+P9qgSChrOKNpEatslpATR/w9Kz8qzNNaNd0gjEPejVRwGqQLyuX7M6bpYQ0+xoWc9iXrsz4 +ouatYm54NQyi1jsrm0eivWQPBF/Wb9LHTmTxW/xOO9Dn/4m3EEH6JzNcT5YSaUtEQK01E+UB o/gltq99pPhROYHi4ldbg7gjdBmlWwLyQOwxvXluTGsMSfhK67k013Vg5xWchVmvR68kDP+ei M5ZAWtS5HQfsP8d3fk40FX8Bq1CEmUj7LlbCdXSlc73ZUq/U3goK8Jk6pi6nofA+xcCfnI75W rVjs9mRcwgMtWA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220217_160942_948731_19203AA8 X-CRM114-Status: GOOD ( 11.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order that the end of a clk_div_table can be detected, it must be terminated with a sentinel element (.div = 0). Fixes: b4626a7f4892 ("CLK: Add Loongson1C clock support") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Philippe Mathieu-Daudé --- v4: - remove trailing comma v3: - no changes v2: - Add Fixes and R-b tags --- drivers/clk/loongson1/clk-loongson1c.c | 1 + 1 file changed, 1 insertion(+) -- 2.34.1 diff --git a/drivers/clk/loongson1/clk-loongson1c.c b/drivers/clk/loongson1/clk-loongson1c.c index 703f87622cf5f..1ebf740380efb 100644 --- a/drivers/clk/loongson1/clk-loongson1c.c +++ b/drivers/clk/loongson1/clk-loongson1c.c @@ -37,6 +37,7 @@ static const struct clk_div_table ahb_div_table[] = { [1] = { .val = 1, .div = 4 }, [2] = { .val = 2, .div = 3 }, [3] = { .val = 3, .div = 3 }, + [4] = { /* sentinel */ } }; void __init ls1x_clk_init(void)