From patchwork Thu Jun 23 18:00:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 12893020 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 36719C43334 for ; Thu, 23 Jun 2022 18:02:07 +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=hC4PSoz0ibqQBbms6ZOLPmhYoOot0/QzuYMoYvBna+w=; b=XvSP3mqCete+Xo 1qrfi3zS/axWRq08rfH8DvBe8DZbOp5SiHUq8z4tRJUfCsuvd8tQnkwyPUNDa6sk2HiA2vMAVABBn PyXM4TBIOCfs6KmInqgx7D/lHY5nEeE66YiRiNMOqoTka4JzrbDMhfGsHoA/MuCVf39VyIdsm2p0R WIMRL9PFYp1qcCRMUUzKONM9zE1vzxGBsMdpdnfD9IO7ifwtJdguze3VP1Y2PTAWBt5KzyFP5s+Zy AdNMSjDLX2wK4Ke+/91AlV0XkS+BGbNKn1Nv2vhybokkOTf8d0fgBSRAKLG6zNbkPtDAHVpM5lpAD W4MDH8XLJZFpKeDqWfOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4R8b-00GEVI-6c; Thu, 23 Jun 2022 18:01:05 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4R8W-00GET8-1X for linux-arm-kernel@lists.infradead.org; Thu, 23 Jun 2022 18:01:01 +0000 Received: by mail-wr1-x434.google.com with SMTP id s1so29017262wra.9 for ; Thu, 23 Jun 2022 11:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dRJQoHw1UG1x5dNKh7G6ADZfil6pTNVqaifRMO6ggF0=; b=MLfROjT9/wqnuFpNELvplnXAfdW9jH48Eqh1salfv/Iekdf/56jqn/sNuyZRUiEz10 LOcxnnmDfEqCQ5Un9E78BJU/fWmqt5NBklAScqUPcry29uRuvK/keaXyz2Ow/qdOk2iV A9oYQFcNBZWZNTxTamiLRbqZ79v6n4ZM+3JkdRjUm95FXoEKfU1rvz5O3+emNoF1KwPk bvUWyACqMfwaBX/P1MvNDnUpBY2MDdGZ4E31GS4iQDWIZlRo1xPsjWcEUSoNIB+IVqv0 7fVsBU9TCuMwQA49LZMGOWZqLYkTEMabyIML70inShUXE3twRqxjpWjWXHZ5YOVsmYtZ LevA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dRJQoHw1UG1x5dNKh7G6ADZfil6pTNVqaifRMO6ggF0=; b=a69ZIp0UsvrCoHUrK1BJgoi4/2S1Ip25DjOo6nyc5rhv0qbFOZX2ZRL69/FTneFTU9 MkENnadYyIvLNHmYJlEqFzO32ZK9PbuQMHCUj8W1CZ6AN6bMZ4/Q7DUBrUzkjFiLrFYV cRIlX25/HNp6btZn+Ux9gY/C45LlaQIvhyh5PZPWm1Grjyus0Md8HhKfqo3SUFvylSW8 iiSeXRiy2SXH+fkmIa8C6oqj+qX+CzzrJM692vQhSBetJq0befjTjMWXmb9t0BLbPsT7 GLa6ziTvw9cTOpOdA1FPW444IfUCIiuebViYTWNfgDBoT2JZICG0O+AJYA5RM7srfXdF 5yeA== X-Gm-Message-State: AJIora+2B6D1Oyq7rioBnVow9jWzg03RCaxynmevstYZTaL42P70smtf 49KgfQ0wNB1Ahi32lmojRNo= X-Google-Smtp-Source: AGRyM1toobZl5B1XzSCHMlvHvQl5Nai3QbUhmgtQcRWFRH+ixEaJocohOwMe9KH9e6aUg3VghL2QrQ== X-Received: by 2002:adf:fb12:0:b0:20c:79b2:a200 with SMTP id c18-20020adffb12000000b0020c79b2a200mr9789991wrr.617.1656007255590; Thu, 23 Jun 2022 11:00:55 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id f11-20020a05600c4e8b00b0039c4945c753sm4678551wmq.39.2022.06.23.11.00.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 11:00:55 -0700 (PDT) From: Colin Ian King To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PM / devfreq: imx-bus: use NULL to pass a null pointer rather than zero Date: Thu, 23 Jun 2022 19:00:54 +0100 Message-Id: <20220623180054.79687-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220623_110100_123123_4DB5EA42 X-CRM114-Status: GOOD ( 13.69 ) 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 3rd argument to the function of_get_property is a pointer and it is being passed using 0. Use NULL instead. Cleans up sparse warning: warning: Using plain integer as NULL pointer Signed-off-by: Colin Ian King --- drivers/devfreq/imx-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/imx-bus.c b/drivers/devfreq/imx-bus.c index f3f6e25053ed..f87067fc574d 100644 --- a/drivers/devfreq/imx-bus.c +++ b/drivers/devfreq/imx-bus.c @@ -59,7 +59,7 @@ static int imx_bus_init_icc(struct device *dev) struct imx_bus *priv = dev_get_drvdata(dev); const char *icc_driver_name; - if (!of_get_property(dev->of_node, "#interconnect-cells", 0)) + if (!of_get_property(dev->of_node, "#interconnect-cells", NULL)) return 0; if (!IS_ENABLED(CONFIG_INTERCONNECT_IMX)) { dev_warn(dev, "imx interconnect drivers disabled\n");