]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: nvec: propagate error codes in tegra_nvec_probe()
authorArtem Lytkin <iprintercanon@gmail.com>
Mon, 16 Feb 2026 20:20:11 +0000 (20:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:44:44 +0000 (15:44 +0100)
commitb8232ea5d1612cde68563075bfaf2ead304b9cd5
tree4c2d98928f12f9164885dca0c1d410cb62b67942
parent6edec96a66cac874e39e19c7f69ea042f90d7155
staging: nvec: propagate error codes in tegra_nvec_probe()

Several error paths in tegra_nvec_probe() return -ENODEV instead of
propagating the actual error code from the called function. This
prevents probe deferral from working correctly when a dependency
(clock, IRQ) is not yet available.

Fix this for platform_get_irq(), devm_clk_get(), and
devm_request_irq() by propagating their return values. Use
dev_err_probe() for the latter two to suppress log messages during
deferred probing.

The remaining -ENODEV returns for missing device tree node and
slave-addr property are left unchanged as those are permanent
configuration errors unrelated to probe deferral.

Signed-off-by: Artem Lytkin <iprintercanon@gmail.com>
Link: https://patch.msgid.link/20260216202011.1806-1-iprintercanon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c