linux-next/drivers/platform
Dan Carpenter 2d516b8fc0 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: 41bb142a40 ("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>
2024-09-05 16:31:59 +00:00
..
arm64 platform: arm64: EC_LENOVO_YOGA_C630 should depend on ARCH_QCOM 2024-07-12 11:59:53 +03:00
chrome chrome-platform fixes for v6.11-rc2 2024-07-30 12:53:52 -07:00
cznic platform: cznic: turris-omnia-mcu: Fix error check in omnia_mcu_register_trng() 2024-09-05 16:31:59 +00:00
goldfish platform/goldfish: goldfish_pipe: add missing MODULE_DESCRIPTION() macro 2024-07-03 16:40:46 +02:00
loongarch platform/loongarch: laptop: Fix possible UAF and simplify generic_acpi_laptop_init() 2022-10-29 16:29:31 +08:00
mellanox virtio: rename find_vqs_info() op to find_vqs() 2024-07-17 05:20:57 -04:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-06-21 10:22:10 +02:00
olpc platform/olpc: olpc-xo175-ec: Use SPI device ID data to bind device 2023-03-20 14:43:35 +01:00
surface driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
x86 platform-drivers-x86 for v6.11-3 2024-08-12 08:21:52 -07:00
Kconfig platform: cznic: Add preliminary support for Turris Omnia MCU 2024-07-01 15:46:36 +02:00
Makefile platform-drivers-x86 for v6.11-1 2024-07-17 17:05:21 -07:00