]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: tsl2591: return actual error from probe IRQ failure
authorStepan Ionichev <sozdayvek@gmail.com>
Mon, 18 May 2026 09:43:11 +0000 (14:43 +0500)
committerJonathan Cameron <jic23@kernel.org>
Sat, 4 Jul 2026 23:02:10 +0000 (00:02 +0100)
commita00ffd15674bfaf8b906503c1600e3d8709af56c
tree4ed006058b3bd90641568f305a3b31f71224d47b
parentaffe3f077d7a4eeb25937f5323ff059a54b4712c
iio: light: tsl2591: return actual error from probe IRQ failure

When devm_request_threaded_irq() fails, probe logs the error and
then returns -EINVAL, dropping the real error code and breaking the
deferred-probe flow for -EPROBE_DEFER.

Return ret directly; the IRQ subsystem already prints on failure.

Fixes: 2335f0d7c790 ("iio: light: Added AMS tsl2591 driver implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/tsl2591.c