]> www.infradead.org Git - users/jedix/linux-maple.git/commit
can: tcan4x5x: fix power regulator retrieval during probe
authorBrett Werling <brett.werling@garmin.com>
Thu, 12 Jun 2025 19:18:25 +0000 (14:18 -0500)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 17 Jun 2025 15:47:23 +0000 (17:47 +0200)
commitdb22720545207f734aaa9d9f71637bfc8b0155e0
tree6d1c38ce27a43a8eb77ecaf39704c648b3c03f86
parent7b4ac12cc929e281cf7edc22203e0533790ebc2b
can: tcan4x5x: fix power regulator retrieval during probe

Fixes the power regulator retrieval in tcan4x5x_can_probe() by ensuring
the regulator pointer is not set to NULL in the successful return from
devm_regulator_get_optional().

Fixes: 3814ca3a10be ("can: tcan4x5x: tcan4x5x_can_probe(): turn on the power before parsing the config")
Signed-off-by: Brett Werling <brett.werling@garmin.com>
Link: https://patch.msgid.link/20250612191825.3646364-1-brett.werling@garmin.com
Cc: stable@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x-core.c