ASoC: mt6359: fix tests for platform_get_irq() failure
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Aug 2022 11:01:26 +0000 (14:01 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 15 Aug 2022 00:20:03 +0000 (01:20 +0100)
commit51eea3a6fb4d39c2cc71824e6eee5949d7ae4d1c
treeebf66bd4737c6cc844c691c1b3d6107aea56e890
parent1ca726424a12962f2c2656cc9cdd0b8668117e8f
ASoC: mt6359: fix tests for platform_get_irq() failure

The platform_get_irq() returns negative error codes.  It can't actually
return zero, but if it did that should be treated as success.

Fixes: eef07b9e0925 ("ASoC: mediatek: mt6359: add MT6359 accdet jack driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YvThhr86N3qQM2EO@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/mt6359-accdet.c