diff options
author | Ilpo Järvinen <[email protected]> | 2024-05-27 16:24:41 +0300 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2024-06-20 10:57:44 +0200 |
commit | ebc4fc34eae8ddfbef49f2bdaced1bf4167ef80d (patch) | |
tree | fc6aab2344f7cef3eb0845c62da9d9bf0dbb2880 /tools/perf/util/trace-event-scripting.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: [email protected]
Signed-off-by: Ilpo Järvinen <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions