diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-05-27 16:24:41 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2024-06-20 10:57:44 +0200 |
commit | ebc4fc34eae8ddfbef49f2bdaced1bf4167ef80d (patch) | |
tree | fc6aab2344f7cef3eb0845c62da9d9bf0dbb2880 /lib/kunit/assert.c | |
parent | 6ba59ff4227927d3a8530fc2973b80e94b54d58f (diff) |
mmc: sdhci-pci: Convert PCIBIOS_* return codes to errnos
jmicron_pmos() and sdhci_pci_probe() use pci_{read,write}_config_byte()
that return PCIBIOS_* codes. The return code is then returned as is by
jmicron_probe() and sdhci_pci_probe(). Similarly, the return code is
also returned as is from jmicron_resume(). Both probe and resume
functions should return normal errnos.
Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal
errno before returning them the fix these issues.
Fixes: 7582041ff3d4 ("mmc: sdhci-pci: fix simple_return.cocci warnings")
Fixes: 45211e215984 ("sdhci: toggle JMicron PMOS setting")
Cc: stable@vger.kernel.org
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240527132443.14038-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'lib/kunit/assert.c')
0 files changed, 0 insertions, 0 deletions