From patchwork Sun Sep 4 14:10:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12965203 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 9F4C3ECAAD4 for ; Sun, 4 Sep 2022 14:12:10 +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: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:In-Reply-To:References: List-Owner; bh=3EhOaGsVIZJ5i6GO4Q6R+rQRjUAw91I1ZX+poqep/2I=; b=zVPu/tzHMCeALf BoHmwfUixZVLaP3NaMLvg1tl6MLHe3OLJHFu7APJXpvSEh2m9lsc1WmT4Zxd7vdmzZ1nQGcIDeju9 jFhGvVKYEofh0drJYPWsxGQVQX1IxWiGeCt7G7Ig46+hQeKKlLJ1tWwEGysIZhuuQGWmerkV6DmOJ w/dN6e8IFk103s3T0M8n6S3/1wRGxiN/V5jMZwVhQskCexZpgxl+Hr7tVj4/xAC0VM7WEyoevs6/Q lzXzFfKtpQ5tmx8XDWdpKa5GS7USyjb5ErI5agrsVPwOr3HjSQ+D3nVgjsw4LkQt0I28vXcM8eSLx tMFUWgJ29bFPQ6TGE4dQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oUqL8-006mO7-Hw; Sun, 04 Sep 2022 14:11:10 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oUqL4-006mKY-CN; Sun, 04 Sep 2022 14:11:08 +0000 Received: from stefanw-SCHENKER ([37.4.248.23]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M6lUk-1oS5iI2clq-008K9h; Sun, 04 Sep 2022 16:10:56 +0200 From: Stefan Wahren To: Michael Turquette , Stephen Boyd , Florian Fainelli , Ray Jui , Scott Branden , Maxime Ripard Cc: linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Wahren Subject: [PATCH] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Sun, 4 Sep 2022 16:10:37 +0200 Message-Id: <20220904141037.38816-1-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:6oSaHcTOotAL64NBQsFwW8u0vvbfsKei7LqGC3+lO+x1QPcXby7 VT+BeGToJk56f7xT+x0OzbJsJqcKAElsInVqjK6xvy33uMlgFEYplwiCWayB7hHgLfdc8cl 6pbheYHb2iUQkwvibDn3NVMzQYZwBwYU8ubZQJ9kQLcmTyMd7Z5ODDQCs4BWNzVljJY9S3y nKapWwmV0tvAZaVgGdwIw== X-UI-Out-Filterresults: notjunk:1;V03:K0:YNM5B2ppFuI=:YdJ7zX5WteTZAf+raa7NgE JVP0HieizKyN6kB44LkkZ3IfOqyq6PO8t/JOqeAQPxRxHUUnW1+dTptLE8Vbn7iXF2zCHk0qM 7JwLeyLhuE3Tl4Ghna9H6mbTCFS5hvf5LLYwYr90KZ4Ce28PXQb868DI5Tz6tIFxAyh+k/X37 8FIJ3Wzd7e8CWaOMY9bqr7Oebwf53yxa4hpFo26OEzq6aoKN4j2ThmTtdpmIlvaEqvC5NDb4n Gqn8oropAwn6+DjKEpFJ4WxxjcbjTr6RkaKm7Bp+ZNKqjZ9BlWUIBHaBFaVDlppmUYV49qGXN yiAoPtCCunoISJe5pRs8Rk/Dp2M0yFnUiPDW4KAebo0yL+xglRSmytmseQHjNn6wOjY9VyYXU GsArdFvjNwpjrJzyaBqy+Y5YTge001jlsO6rT02a1HCLB31wtP4vHKt2ObsRllB/bxc9BDmUB k4iGeDaZQpt1fZY535eHm37uIIeeckg0eeiU7yL/6qg+vj2YczGDcV0IecM5JcvFOaHMU+nDW qFvO++dFe6NKfIjxAmFPdZTwSr3jLJqenLET5LZOp/lZk8T7SrBCQGUvqn+n8+uf7Uj9QLPMT I8EouWVXiaQ6+a17Ad83FYDgG6jLU2FcpxLwVpaoveZJ0r23lIU3SjeYUifpzKAno1DQZHjcb 8nxaTj1+9fRaDo/UdGwvgBX4bpvJkGeGx8XYu1kl5ATma+/LqvYT5qlXhdSLEvp6w0wNC8v+x 4woTCKC3JTIQoOUmIKeg8usjxE8EtqFJofMP/3BPqIVWMSaWBQ2gk96DKFVoRSZCGTlgpUJh6 UU7Jg4WdWSsztgwjiwdieLO8EHM0w== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220904_071106_767191_17D9B793 X-CRM114-Status: GOOD ( 10.91 ) 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 The return value of bcm2835_clock_rate_from_divisor is always unsigned and also all caller expect this. So fix the declaration accordingly. Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the audio domain clocks") Signed-off-by: Stefan Wahren Reviewed-by: Ivan T. Ivanov Reviewed-by: Florian Fainelli --- drivers/clk/bcm/clk-bcm2835.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index 48a1eb9f2d55..9e9f8b242958 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -966,9 +966,9 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw, return div; } -static long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock, - unsigned long parent_rate, - u32 div) +static unsigned long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock, + unsigned long parent_rate, + u32 div) { const struct bcm2835_clock_data *data = clock->data; u64 temp;