Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp568951ybz; Fri, 24 Apr 2020 05:36:28 -0700 (PDT) X-Google-Smtp-Source: APiQypK91S7cy2KXBKnL9Ao4+JoZqWc2iA1aCxl8vjxVpHK5v5m90w589SLj9h//tEsn75Fb8ej1 X-Received: by 2002:a17:907:2098:: with SMTP id pv24mr7115346ejb.22.1587731788131; Fri, 24 Apr 2020 05:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587731788; cv=none; d=google.com; s=arc-20160816; b=OLKGQlEMyplpLp2zw86u/axiLjRLih9qNqQW2ILKV8xE5/DO4s88lSmo846y2p8CfT XYZ//3Js0LonsfCtsL5j0TkbTtI0lkv61Slesl+Bd4ClSPqOjFc7hAXWKr9e9dDvn0n6 Vgvtd7K+tRDm7SkrzVEev8a11YtAZncRtXDo0F6Qt11T/MtA6t/G2VqmWIuSxLcFFjnV D6ykfMVA6Lrk/E9ErIjm2XqOlG2jNi3/WFX+WodWEBY0ybjFUMZ+dSfblie2INgCSvZh N6He4fSY1073dvmPQ+72iJE+FTXjuAm1dl7TOP9weTsQZJaSSYClfqcTFscbacC5uyoB iKmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=f9evxzEu3K8lq7C0jM9pxO4/JKr89MtaqW3ECMzdXuo=; b=bpHNlElVsSpFv3dKR+rylJyKK4vNk+WXZxGkOFbxetHBaD6EKxgZs+mJsMx68MHSiV lwGwPqTaCcdwO2npyGSOS5bOIz7jfYxBhdnXuPAR2NNQ/bGFtnhmEkzRoNMMoD1FPuG6 3ScmbovSCnX6XKPJIy4bijLk59VqDWvN+vKv6IoI5v1jXunAUq7e2bLONTpimyJRKbEx rLDDDLRX0S4T1enet5TANylRUPv2ul1W8WeOhQHOww5ztQ9sNFG0VI2MZ8CJUHqihPe5 N5D5aoC0L+DgtlQBJ7q2bC6cQ2Guok71NzGSokFyg586JsDkB0hmkADPT4/bFf/nMZVn UxtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ge8Kogar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si2955025ejq.325.2020.04.24.05.36.04; Fri, 24 Apr 2020 05:36:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ge8Kogar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbgDXMcb (ORCPT + 99 others); Fri, 24 Apr 2020 08:32:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:52284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbgDXMW5 (ORCPT ); Fri, 24 Apr 2020 08:22:57 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 547BF21582; Fri, 24 Apr 2020 12:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587730977; bh=l0ZRuARmG39itY8Gk3NXDFg74u0GGjLdxKk76vOkrOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ge8KogarkkOTxEfqmoJAKxRcZDmFBOxdJpbGAmnidNmvfcTLQ+zHLcEAX6H6jWZN/ qk7dZ3ONe6EjFJcUmGBErK0Fk4aJmbbFzpWznQ6jEQibr/ovSS1xUWB3ozefTwfbwp UO9je6TORIb8pLmVLROMCegEEZ8tlfsjpNWilq5Y= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Stephen Boyd , Sasha Levin , linux-clk@vger.kernel.org Subject: [PATCH AUTOSEL 5.6 17/38] clk: asm9260: fix __clk_hw_register_fixed_rate_with_accuracy typo Date: Fri, 24 Apr 2020 08:22:15 -0400 Message-Id: <20200424122237.9831-17-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200424122237.9831-1-sashal@kernel.org> References: <20200424122237.9831-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 924ed1f5c181132897c5928af7f3afd28792889c ] The __clk_hw_register_fixed_rate_with_accuracy() function (with two '_') does not exist, and apparently never did: drivers/clk/clk-asm9260.c: In function 'asm9260_acc_init': drivers/clk/clk-asm9260.c:279:7: error: implicit declaration of function '__clk_hw_register_fixed_rate_with_accuracy'; did you mean 'clk_hw_register_fixed_rate_with_accuracy'? [-Werror=implicit-function-declaration] 279 | hw = __clk_hw_register_fixed_rate_with_accuracy(NULL, NULL, pll_clk, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | clk_hw_register_fixed_rate_with_accuracy drivers/clk/clk-asm9260.c:279:5: error: assignment to 'struct clk_hw *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] 279 | hw = __clk_hw_register_fixed_rate_with_accuracy(NULL, NULL, pll_clk, | ^ From what I can tell, __clk_hw_register_fixed_rate() is the correct API here, so use that instead. Fixes: 728e3096741a ("clk: asm9260: Use parent accuracy in fixed rate clk") Signed-off-by: Arnd Bergmann Link: https://lkml.kernel.org/r/20200408155402.2138446-1-arnd@arndb.de Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/clk-asm9260.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-asm9260.c b/drivers/clk/clk-asm9260.c index 536b59aabd2cb..bacebd457e6f3 100644 --- a/drivers/clk/clk-asm9260.c +++ b/drivers/clk/clk-asm9260.c @@ -276,7 +276,7 @@ static void __init asm9260_acc_init(struct device_node *np) /* TODO: Convert to DT parent scheme */ ref_clk = of_clk_get_parent_name(np, 0); - hw = __clk_hw_register_fixed_rate_with_accuracy(NULL, NULL, pll_clk, + hw = __clk_hw_register_fixed_rate(NULL, NULL, pll_clk, ref_clk, NULL, NULL, 0, rate, 0, CLK_FIXED_RATE_PARENT_ACCURACY); -- 2.20.1