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 4F270C54EBE for ; Mon, 16 Jan 2023 14:14: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: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=Ywhp1V7Yb4jBosrz+seVrrOX+cseZfOjBzlEwerwNNs=; b=1LSV0i2KdidRfq Gz0hXqB+H3iQlETYJFQfOB6eCnCIzSBA/Y4Q0MY642dGjYg3OHI+7hIoyRw4pW2gU5qArYsUlaOBe sOQkZkzllQjcrhTeUExaTQ3GpdZHq4x+weyi0zbYyGOt33UgNytM+FXVDdo9hClTF7+TJVF33CGwL L6NhXsed5PjOrzqU2Aw1nGWMKipU3uwL7rjrlLZJtWeUS5oaGWK5jWzJEx79WqN+2aXUpuwBpBycq AIOV8K8GHZcEfdai9Yn6a/CMB/dmlLvN3CZeEFppk/bQSokhg+6B7Kxn47l8JpDgtk0VNrvSGIZv0 kjwWjEHS1hVOYhkiy0Fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHQEM-00AmYv-VD; Mon, 16 Jan 2023 14:12:59 +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 1pHQ50-00Ah2h-Ii; Mon, 16 Jan 2023 14:03:20 +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 A4F8860FE0; Mon, 16 Jan 2023 14:03:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 467E9C433EF; Mon, 16 Jan 2023 14:03:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673877797; bh=vzGU7fggFYdTM/Yz8WBo94uwKocZoX7eVhfAfkKbvRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cSJFOyD0U/8NUKLfczffwrD458xnjyQImChDno+1T6qLYpUhD6FXA7ql9o5f1ISlK qy3RiIW/wNk6B5XIFhGGruOB2aYvEwdTd5ANOjDdfVpxsIa/7Yg52+RVdW/UbJ9xdM 23L3Nw0cMiEQ7lvO48RV5uFHvTsPM/ad9pHcQFk/X/bRT/JIUaIC79CrJkatMrilJ/ 1RJfibmzy5m8maqAEA+jm7YM78/TThv7kFFtpUgx3eMLZ59Y8tYlLr48W/SQaEM2IA 93MLC3HqEklTAPHF+BrcGqHVKvodT9f3GjVNdH94nlGNw92HebUIou36p1kLDM/ecZ HW7C3+iv/JiSA== 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 6.1 31/53] cpufreq: armada-37xx: stop using 0 as NULL pointer Date: Mon, 16 Jan 2023 09:01:31 -0500 Message-Id: <20230116140154.114951-31-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230116140154.114951-1-sashal@kernel.org> References: <20230116140154.114951-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_060318_709032_E60F38F4 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 c10fc33b29b1..b74289a95a17 100644 --- a/drivers/cpufreq/armada-37xx-cpufreq.c +++ b/drivers/cpufreq/armada-37xx-cpufreq.c @@ -445,7 +445,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