Skip to content

Commit

Permalink
mmc: handle pci_enable_device() return value in sdhci
Browse files Browse the repository at this point in the history
Make sure we report back any errors from pci_enable_device().

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Pierre Ossman committed Feb 4, 2007
1 parent 397411e commit df1c4b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/mmc/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit df1c4b7

Please sign in to comment.