]> Gentwo Git Trees - linux/.git/commit
serial: icom: Convert PCIBIOS_* return codes to errnos
authorHaotian Zhang <vulab@iscas.ac.cn>
Mon, 17 Nov 2025 04:07:10 +0000 (12:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 12:11:51 +0000 (13:11 +0100)
commit57c8794693368a5df8014e4bbb7ef4016be119ed
tree23a5d4bca4a09d1e0392f44f837b5af54b3a21cb
parentd3210c8e88ee4132a5bb316ee96b09472db90572
serial: icom: Convert PCIBIOS_* return codes to errnos

icom_probe() uses pci_read_config_dword() that returns PCIBIOS_*
codes. The return code is returned from the probe function as is but
probe functions should return normal errnos. A proper implementation
can be found in drivers/leds/leds-ss4200.c

Convert PCIBIOS_* return codes using pcibios_err_to_errno() into
normal errno before returning them.

Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20251117040710.1544-1-vulab@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/icom.c