mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mmc: handle pci_enable_device() return value in sdhci
Make sure we report back any errors from pci_enable_device(). Signed-off-by: Pierre Ossman <[email protected]>
This commit is contained in:
parent
397411e67f
commit
df1c4b7bf7
1 changed files with 3 additions and 1 deletions
|
|
@ -1125,7 +1125,9 @@ static int sdhci_resume (struct pci_dev *pdev)
|
|||
|
||||
pci_set_power_state(pdev, PCI_D0);
|
||||
pci_restore_state(pdev);
|
||||
pci_enable_device(pdev);
|
||||
ret = pci_enable_device(pdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
for (i = 0;i < chip->num_slots;i++) {
|
||||
if (!chip->hosts[i])
|
||||
|
|
|
|||
Loading…
Reference in a new issue