Commit ebc4fc3
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: 7582041 ("mmc: sdhci-pci: fix simple_return.cocci warnings")
Fixes: 45211e2 ("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]>1 parent 6ba59ff commit ebc4fc3
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
| 1329 | + | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
1340 | | - | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1341 | 1344 | | |
1342 | 1345 | | |
1343 | 1346 | | |
| |||
2202 | 2205 | | |
2203 | 2206 | | |
2204 | 2207 | | |
2205 | | - | |
| 2208 | + | |
2206 | 2209 | | |
2207 | 2210 | | |
2208 | 2211 | | |
| |||
2211 | 2214 | | |
2212 | 2215 | | |
2213 | 2216 | | |
2214 | | - | |
| 2217 | + | |
2215 | 2218 | | |
2216 | 2219 | | |
2217 | 2220 | | |
| |||
0 commit comments