diff options
| author | 2022-08-11 13:53:05 +0300 | |
|---|---|---|
| committer | 2022-09-28 16:17:39 +0100 | |
| commit | 75db7907355ca5e2ff606e9dd3e86b6c3a455fe2 (patch) | |
| tree | 2df6cb4df99f50eae2e0390a52e176e4dbe3b04e /lib/math/git:/ssh:/git@git.zx2c4.com | |
| parent | dt-bindings: mfd: qcom,tcsr: Add several devices (diff) | |
| download | linux-dev-75db7907355ca5e2ff606e9dd3e86b6c3a455fe2.tar.xz linux-dev-75db7907355ca5e2ff606e9dd3e86b6c3a455fe2.zip | |
mfd: fsl-imx25: Fix check for platform_get_irq() errors
The mx25_tsadc_remove() function assumes all non-zero returns are success
but the platform_get_irq() function returns negative on error and
positive non-zero values on success. It never returns zero, but if it
did then treat that as a success.
Fixes: 18f773937968 ("mfd: fsl-imx25: Clean up irq settings during removal")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/YvTfkbVQWYKMKS/t@kili
Diffstat (limited to 'lib/math/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
