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: 12750800 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8AF10C4332F for ; Fri, 18 Feb 2022 00:09:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbiBRAKH (ORCPT ); Thu, 17 Feb 2022 19:10:07 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:39756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiBRAKF (ORCPT ); Thu, 17 Feb 2022 19:10:05 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7243053B4D; Thu, 17 Feb 2022 16:09:49 -0800 (PST) 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> MIME-Version: 1.0 X-Provags-ID: V03:K1:wIeA3EpWZ2D/QrBiVRtabFv6htYrl8luxA9LG3fPYVV3/DUZYEO TQxYKZHnp6ehklZ+aUvGdJ8FPBzmsSYoNw8PBuPvYxxX4uKE4GWTons4wx86M4Yhe1HzvIr scCyLZmNZxBxwfbkhcwSvGVaNgvXtsT08CPW47e8Pn/iUXMhOvhuwwPI66EZ6JsQG2vulG9 sx7ymXT11UX7C5Nl9AvOA== X-UI-Out-Filterresults: notjunk:1;V03:K0:U+6GU7dX1MY=:XODRymg5Z7mQmphJMhhakb Vr/sO3FPucXX4JpqpCIynvdNmhRmahzdlrVP3sB5ZFgzK9H7GZTxMc1lEGYOiUK19hlQ9y/F8 SFoS2fC8zn/ifuzZjCBz3Pek8AWbpZ/Oy0EJqEKUgRYlWDwIRf0Sf7P3/7yTKf6zEDB0kkTL7 mUcyvw2UUOdBgYVwxuIKGJatXom0mnue3BDzt2LhM6ZE1oAqFTHrLTE2kns+hKuC6JP1cXVVo PJpRB6zUaiOMQ9wYwlkWZgPUVwg8lJUgi+af2RE6Q5Hmg/Rc3KMdAyu+rWFjfVes9zHbLICwD gyU/3UOfxy5JqlDcFoShFwIP3k7PgAaQLRaoqeWojyy0DSTyjryFrCnIRpeicrshqDcxY0xNU 7oq33R51muUDWkb9+Q+1EBu1o3193QiLej2JKiIMeH50S0hHWzgaWTYXn92MPXGF9GH2xWxAL i80XJvW015t4KQcOowaqzLeSTDHTebROuKSiRPcTndqCdCjTDQhNUXGbC9OQSMjRLdvxKxQIg CrmNiBzxqFwr6vf9omDqb0zTXWV4T1vgIyrk8j+/+fg1g1sMpEoYuAOINP9iat+ZvzEcaMZAu fU24RCLp3Rhob59FfTOasS//mfE2wtpodV5DUagg4GToInA/Voz05HDFhT0Vk4YYnU+0wcQN+ T2RSMkoalt6IHb1kHrlk//Uv31xVyzULyunycnUeZkoB77reRIqIk3RttKCtcbbr8L0d1dX5k pf7Hi7Zogy2S3rnI/PGzFd5tW6kZF1AtPD/Mp7QSSOj+JEEYljDOCqs3G535AvF5vgbNLhumr M+P9qgSChrOKNpEatslpATR/w9Kz8qzNNaNd0gjEPejVRwGqQLyuX7M6bpYQ0+xoWc9iXrsz4 +ouatYm54NQyi1jsrm0eivWQPBF/Wb9LHTmTxW/xOO9Dn/4m3EEH6JzNcT5YSaUtEQK01E+UB o/gltq99pPhROYHi4ldbg7gjdBmlWwLyQOwxvXluTGsMSfhK67k013Vg5xWchVmvR68kDP+ei M5ZAWtS5HQfsP8d3fk40FX8Bq1CEmUj7LlbCdXSlc73ZUq/U3goK8Jk6pi6nofA+xcCfnI75W rVjs9mRcwgMtWA= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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)