]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: SDCA: Fix return value in detected_mode_handler()
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 20 Aug 2025 16:37:16 +0000 (17:37 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 4 Sep 2025 11:53:06 +0000 (12:53 +0100)
The detected mode IRQ handler should return an irqreturn_t not a regular
error code. Correct the return value in detected_mode_handler().

Fixes: b9ab3b618241 ("ASoC: SDCA: Add some initial IRQ handlers")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Message-ID: <20250820163717.1095846-3-ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_interrupts.c

index 8018773ee4265e1e6a7c5be31c492622fca8e496..79bf3042f57d420a60a829d89663a600cc75218e 100644 (file)
@@ -155,7 +155,7 @@ static irqreturn_t detected_mode_handler(int irq, void *data)
                                                           SDCA_CTL_SELECTED_MODE_NAME);
 
                if (!name)
-                       return -ENOMEM;
+                       return IRQ_NONE;
 
                kctl = snd_soc_component_get_kcontrol(component, name);
                if (!kctl) {