]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: gpio: Use dev_err_probe
authorNishanth Menon <nm@ti.com>
Mon, 12 May 2025 18:57:27 +0000 (13:57 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 13 May 2025 05:48:57 +0000 (07:48 +0200)
commitcad915e4515790d2e66525a86a166e7ce81e3055
treeefa6a136854176910dd9258124c70fcb9305b988
parent6157e62b07d9331cc1d4d9d525dab33d45b0e83c
regulator: gpio: Use dev_err_probe

During probe the gpio driver may not yet be available. Use
dev_err_probe to provide just the pertinent log.

Since dev_err_probe takes care of reporting the error value,
drop the redundant ret variable while at it.

Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://patch.msgid.link/20250512185727.2907411-1-nm@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/gpio-regulator.c