]> www.infradead.org Git - users/jedix/linux-maple.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)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Feb 2025 11:59:09 +0000 (12:59 +0100)
commit6568cb40e73163fa25e2779f7234b169b2e1a32e
treee13eeaecd3fa9912adb4c8390c77a06c5bc936b9
parent6d137f8101fcd20693b3bfce1acc13d42619c1c7
pmdomain: imx: gpcv2: use proper helper for property detection

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>
drivers/pmdomain/imx/gpcv2.c