From patchwork Fri Mar 10 14:46:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13169461 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 81980C6FA99 for ; Fri, 10 Mar 2023 16: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=sMb+UUe4SqT9BnSvBd3YF7EVs3VI30av9GKCdqpmCxg=; b=GdNaLj5V+9IRO5 ustlrFd2oZWGMtQXF1EVYS7WJ2LFvuwTVykR88c0GfXSP++I/Q6xHnU7sNWg/kEZNcfPuZM5zC5Fi PjFWPImp86JPQMbOwBvwJAi696zhZCno6YeoPQInWb68Ymi9kgeMZ+q419jz73jZBOJMkYrr+lmKz phk0CXOLN1jUU/WQTwfcry5gIQi8j8JeU7SVWv7hpNEmoI5K8oEFYBdo+P7LWYnBdpnj40GVHqdLf HEgjQ4a08X/QsnvWiOdOs3MEtvA0kqS6nhh9eAsEyLB08ww6AxmA3WX0GtIz5Hx3Yjo6tVuGwMJS7 ECi8Ly7HXkkG3s4VIpOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pafBG-00FA58-I4; Fri, 10 Mar 2023 16:01:18 +0000 Received: from mail-oi1-f177.google.com ([209.85.167.177]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pae1Q-00EmV5-93 for linux-arm-kernel@lists.infradead.org; Fri, 10 Mar 2023 14:47:05 +0000 Received: by mail-oi1-f177.google.com with SMTP id q15so4370237oiw.11 for ; Fri, 10 Mar 2023 06:47:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678459623; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A1eVLNFIYFl5A4F8DTR5Ylb8kOn6AN1OaneTlD5zRxM=; b=XapPHmhMQfU+5Ja8v3h0elDVxqUS3Xt9fZTWepOGnaifeh9MyEyuRwmOlRSJQO/SE1 jEaZJuUR9oE5eY2npvK8qsk+e1MQn/XjYR+6aIDKpVPwhbhEwt7bsWQUpt3NJRKOi9vG 1DQCxgWQ6R969z8LIcNFvDeGH2K31oa9179LIljrfEfCao6GAgGK326vva6lnaeWHnnZ tdGo+LYHPnLTDpWse7BIhWSkj3xfnvpkDFQ1Q4jeV52SnhBzdHj+Zupsh2oxwNtndnS/ ij2Aa2DB7Wzh+9HHbouaQJtwaQ61bXmvo+dE9M9ukHXDrcUxtcDk0E+2NTX4MF0vWu/8 tjdw== X-Gm-Message-State: AO0yUKWb/c5BdBqU3OnDsVcnxQfd+w+hZdlqH8eawKlZOxHPZcMGPFPX YSSfwJUs0KIM/soq+inDIA== X-Google-Smtp-Source: AK7set+rbymJT+LVV612H3qBJ3i/+wvvOThf9Jxmp0gTYmTYHJX6a0UKvKZgGO/ca7aaJY/7m1X3gA== X-Received: by 2002:a05:6808:146:b0:384:2536:2867 with SMTP id h6-20020a056808014600b0038425362867mr4428958oie.12.1678459622081; Fri, 10 Mar 2023 06:47:02 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id y14-20020a9d714e000000b0068d3f341dd9sm102063otj.62.2023.03.10.06.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 06:47:01 -0800 (PST) Received: (nullmailer pid 1540907 invoked by uid 1000); Fri, 10 Mar 2023 14:46:56 -0000 From: Rob Herring To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: pxa: Use of_property_read_bool() for boolean properties Date: Fri, 10 Mar 2023 08:46:56 -0600 Message-Id: <20230310144656.1540881-1-robh@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230310_064704_337137_352A4478 X-CRM114-Status: GOOD ( 13.19 ) 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 It is preferred to use typed property access functions (i.e. of_property_read_ functions) rather than low-level of_get_property/of_find_property functions for reading properties. Convert reading boolean properties to to of_property_read_bool(). Signed-off-by: Rob Herring --- arch/arm/mach-pxa/irq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index 96f33ef1d9ea..a9ef71008147 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c @@ -257,8 +257,7 @@ void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int)) } pxa_irq_base = io_p2v(res.start); - if (of_find_property(node, "marvell,intc-priority", NULL)) - cpu_has_ipr = 1; + cpu_has_ipr = of_property_read_bool(node, "marvell,intc-priority"); ret = irq_alloc_descs(-1, 0, pxa_internal_irq_nr, 0); if (ret < 0) {