From mboxrd@z Thu Jan 1 00:00:00 1970 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 F3DCBC46467 for ; Mon, 16 Jan 2023 14:20:19 +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=e1MqbMPkEkBjIWN7QXwGBLIjY4l4xOtm4KUG5OkCS+g=; b=lgCpoP6ZyhpY0i h9p1KjL8beZGWQkNyrMIHZYwap5ro9u8qC8ucsgZ9BlzlEmbk4b2sidIdJTxy4oW2pPEMSoYEQPn0 Z9rfeM72v1Fj6Mi9CLs1poQYFvRZiuFsHQU6yOdeJFEUCxhVjW+P9mX8iX+AyILaKsSiRQy7XCN3T aI44pehVauvsD/lX4yVHGTeV04WGnBWsVKkDPbA/ifdeEOT7ztKpMWSOpFzbt8b1XNQ65RQVU1xTC ZfAo7VawP3roWHGV49jNGR2ZjlR9RIWnU0KJi8elrc3U5nUMQTeNMt7EVeNTlbZymMnda/aaLCtok qkz296t+Yq9HUh91TcJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHQKQ-00Apgs-VK; Mon, 16 Jan 2023 14:19:15 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHQ7C-00AiIc-7g; Mon, 16 Jan 2023 14:05:36 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 97EE360FB3; Mon, 16 Jan 2023 14:05:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A540C433F1; Mon, 16 Jan 2023 14:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673877933; bh=IzuufyDbJLXhFSsDSZlIOGlXoHOFnZTOQwcthzc3Pi4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mb0z3wFUsgnjdBrArVxIMA986Md1FwNrmAT5G9MMgkbhfV7kzJNpGoM2Gc358ClPg L6lzgNmhrAIR09ZcrXPl5D9RaFD/1zyJCIgt7LRLj+EthV21Cfo42yXmK1EiIvnSYF AezsJDGwmf+yp4lp9eFa0yndqMo1/ag6BqPgFV3ow1XyTplPU8oWjD/JIysofTyTlg wCJldUccrwhTRAZZxzVA4P5NWpN4WuLaN+HA5PbggIaeY4sWai1MlU3in6H3m+H7no yUZNjLFrRWBXHK6RgVE+4ZJsyZlBRcGXJLhsYuTQB78t73BUkFlrV/AjfKSD2/Bi3n htsyCnS5WfZGw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Miles Chen , Viresh Kumar , Sasha Levin , andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, rafael@kernel.org, matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH AUTOSEL 5.4 06/16] cpufreq: armada-37xx: stop using 0 as NULL pointer Date: Mon, 16 Jan 2023 09:05:09 -0500 Message-Id: <20230116140520.116257-6-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230116140520.116257-1-sashal@kernel.org> References: <20230116140520.116257-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_060534_346028_63FAE690 X-CRM114-Status: GOOD ( 12.78 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Miles Chen [ Upstream commit 08f0adb193c008de640fde34a2e00a666c01d77c ] Use NULL for NULL pointer to fix the following sparse warning: drivers/cpufreq/armada-37xx-cpufreq.c:448:32: sparse: warning: Using plain integer as NULL pointer Signed-off-by: Miles Chen Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/armada-37xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c index 2de7fd18f66a..f0be8a43ec49 100644 --- a/drivers/cpufreq/armada-37xx-cpufreq.c +++ b/drivers/cpufreq/armada-37xx-cpufreq.c @@ -443,7 +443,7 @@ static int __init armada37xx_cpufreq_driver_init(void) return -ENODEV; } - clk = clk_get(cpu_dev, 0); + clk = clk_get(cpu_dev, NULL); if (IS_ERR(clk)) { dev_err(cpu_dev, "Cannot get clock for CPU0\n"); return PTR_ERR(clk); -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel