Ilpo Järvinen 14cba6ace7 hwrng: amd - Convert PCIBIOS_* return codes to errnos
amd_rng_mod_init() uses pci_read_config_dword() that returns PCIBIOS_*
codes. The return code is then returned as is but amd_rng_mod_init() is
a module_init() function that should return normal errnos.

Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal
errno before returning it.

Fixes: 96d63c0297cc ("[PATCH] Add AMD HW RNG driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2024-06-07 19:46:38 +08:00
..
2023-07-28 18:20:25 +08:00
2024-03-08 19:23:24 +08:00
2023-10-05 18:16:31 +08:00
2022-10-21 19:15:35 +08:00
2023-09-15 18:29:45 +08:00
2022-07-22 16:22:04 +08:00