]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pmdomain: imx: gpcv2: use proper helper for property detection
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Tue, 18 Feb 2025 19:18:32 +0000 (20:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:13 +0000 (14:40 +0200)
commite3c93c79170f5267b19873c6fbcbd8694f04d597
treef16f6d64534619563a19fb67198d93d7e3b3ca89
parent24eb0979ff94456b109133be5e672ba184931d9e
pmdomain: imx: gpcv2: use proper helper for property detection

[ Upstream commit 6568cb40e73163fa25e2779f7234b169b2e1a32e ]

Starting with commit c141ecc3cecd7 ("of: Warn when of_property_read_bool()
is used on non-boolean properties"), probing the gpcv2 device on i.MX8M
SoCs leads to warnings when LOCKDEP is enabled.

Fix this by checking property presence with of_property_present as
intended.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.kernel.org/r/20250218-gpcv2-of-property-present-v1-1-3bb1a9789654@pengutronix.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/imx/gpcv2.c