Home
last modified time | relevance | path

Searched hist:"2 d516b8fc0f18ce9c0347a1aea6edb3d8ca1d692" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/platform/cznic/
H A Dturris-omnia-mcu-trng.cdiff 2d516b8fc0f18ce9c0347a1aea6edb3d8ca1d692 Thu Sep 05 15:16:53 CEST 2024 Dan Carpenter <dan.carpenter@linaro.org> 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>