diff options
| author | 2024-09-05 16:16:53 +0300 | |
|---|---|---|
| committer | 2024-09-05 16:31:59 +0000 | |
| commit | 2d516b8fc0f18ce9c0347a1aea6edb3d8ca1d692 (patch) | |
| tree | 613d8ab7c6ff32968a0878bed17b5357d0f48e11 /rust/kernel/gpu/ssh:/git@git.zx2c4.com | |
| parent | Merge tag 'amlogic-drivers-for-v6.12' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into soc/drivers (diff) | |
platform: cznic: turris-omnia-mcu: Fix error check in omnia_mcu_register_trng()
The gpiod_to_irq() function never returns zero. It returns negative
error codes or a positive IRQ number. Update the checking to check
for negatives.
Fixes: 41bb142a4028 ("platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'rust/kernel/gpu/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
