Commit df1c4b7b authored by Pierre Ossman's avatar Pierre Ossman

mmc: handle pci_enable_device() return value in sdhci

Make sure we report back any errors from pci_enable_device().
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 397411e6
...@@ -1125,7 +1125,9 @@ static int sdhci_resume (struct pci_dev *pdev) ...@@ -1125,7 +1125,9 @@ static int sdhci_resume (struct pci_dev *pdev)
pci_set_power_state(pdev, PCI_D0); pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev); 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++) { for (i = 0;i < chip->num_slots;i++) {
if (!chip->hosts[i]) if (!chip->hosts[i])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment