From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0ECA18FDC8 for ; Tue, 31 Dec 2024 16:14:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661675; cv=none; b=mUOD3lwD5YD1qZnpPh9K89ouqfGDGCYgRT6XubqEKFj/9VVlC1JW343/lKHeTwwxjUMUUn4l6TDj+n7E3QYhwm/ga9Zk8eIR4001hCJ1MB9JmTXM9VvDRl++quUgkHg1TYqeC/iQ1Zg6SI60pnG4pWdouVACqcjQ59iO0W2a4c0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661675; c=relaxed/simple; bh=EEJfCkmINZhggp0GYG74erpl+JmFUjUKOJGwFyI2HAg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QANgkfQ/yHTbFSAE+dOcNt323wiH4OSQY1VA1JIj1mv8/z3WKgvzFYVR+HjJnEHwgAyiR0x2DmiYxN0TfmKwn0w2tlQAlasbnIM9fOo75P1VKOLGGFrwT2lyZ6exPefyZF3mF5ZRv6NTPvnurSjTZFGKI5qZI0YBMjXlcvFskbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mO/P31uH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mO/P31uH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71EC3C4CED2; Tue, 31 Dec 2024 16:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1735661675; bh=EEJfCkmINZhggp0GYG74erpl+JmFUjUKOJGwFyI2HAg=; h=From:To:Cc:Subject:Date:From; b=mO/P31uHpTngGLzywHrw7EyO7A6E6j9pK55nBB6PrIwATL8/D4hdPyYpj3gu0lXoy thI/rAFOgOBOqfQ0N/muVl9e+R5BSqzOuMvaP2WlFPQE+M3TVtsl5DTAmZdXciIiWQ mbb07FRrLw4EJ/Bwf9D8pi9i0+OOvoIptu4p8aGeKJj/1loRrP728RSo2x2Y/zpkE3 ArB8yl0vY5veRlPzDmYEvxEFrb+GWz/NyZ6QfVNvk8GZEXjR7Z838BmgGcD8b3lvQQ /hWGRV6oKF9TPoKeBqorwRRqKJ4Mm1GtGKFIhgrUGTG50GITvjrOOYy0XfU+HI+V8F Wuxhsd2H3Rtsg== From: "Rob Herring (Arm)" To: Michal Simek Cc: linux-kernel@vger.kernel.org Subject: [PATCH] microblaze: Use of_property_present() for non-boolean properties Date: Tue, 31 Dec 2024 10:14:23 -0600 Message-ID: <20241231161424.214934-1-robh@kernel.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: Rob Herring (Arm) --- arch/microblaze/kernel/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c index 26c385582c3b..ccb4b4b59bca 100644 --- a/arch/microblaze/kernel/timer.c +++ b/arch/microblaze/kernel/timer.c @@ -252,7 +252,7 @@ static int __init xilinx_timer_init(struct device_node *timer) int ret; /* If this property is present, the device is a PWM and not a timer */ - if (of_property_read_bool(timer, "#pwm-cells")) + if (of_property_present(timer, "#pwm-cells")) return 0; if (initialized) -- 2.45.2