Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: c_can: Use of_property_present() to test existence of DT property

of_property_read_bool() should be used only on boolean properties.

Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://patch.msgid.link/20250212-syscon-phandle-args-can-v2-3-ac9a1253396b@linaro.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Krzysztof Kozlowski and committed by
Marc Kleine-Budde
ab1bc229 6c00b580

+1 -1
+1 -1
drivers/net/can/c_can/c_can_platform.c
··· 316 316 /* Check if we need custom RAMINIT via syscon. Mostly for TI 317 317 * platforms. Only supported with DT boot. 318 318 */ 319 - if (np && of_property_read_bool(np, "syscon-raminit")) { 319 + if (np && of_property_present(np, "syscon-raminit")) { 320 320 u32 id; 321 321 struct c_can_raminit *raminit = &priv->raminit_sys; 322 322