diff options
author | Dan Carpenter <[email protected]> | 2022-08-11 13:53:05 +0300 |
---|---|---|
committer | Lee Jones <[email protected]> | 2022-09-28 16:17:39 +0100 |
commit | 75db7907355ca5e2ff606e9dd3e86b6c3a455fe2 (patch) | |
tree | 2df6cb4df99f50eae2e0390a52e176e4dbe3b04e /lib/mpi/mpi-internal.h | |
parent | f8c1940165bea6200ce2aa1cb515a2ffa0709d74 (diff) |
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 <[email protected]>
Reviewed-by: Martin Kaiser <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/YvTfkbVQWYKMKS/t@kili
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions