aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2007-01-30 01:55:15 -0500
committerPierre Ossman <drzeus@drzeus.cx>2007-02-04 14:54:11 -0500
commitdf1c4b7bf7f3b3a48d78c6e5c2fc5b9a1c01b821 (patch)
tree97949c48e76c6fccf7ed7d5a1d33b55c551ef5b0
parent397411e67ff473c36161d93e4c7ac6dc53e23503 (diff)
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 <drzeus@drzeus.cx>
-rw-r--r--drivers/mmc/sdhci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 99f1db92295b..b57393c7f9b5 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -1125,7 +1125,9 @@ static int sdhci_resume (struct pci_dev *pdev)
1125 1125
1126 pci_set_power_state(pdev, PCI_D0); 1126 pci_set_power_state(pdev, PCI_D0);
1127 pci_restore_state(pdev); 1127 pci_restore_state(pdev);
1128 pci_enable_device(pdev); 1128 ret = pci_enable_device(pdev);
1129 if (ret)
1130 return ret;
1129 1131
1130 for (i = 0;i < chip->num_slots;i++) { 1132 for (i = 0;i < chip->num_slots;i++) {
1131 if (!chip->hosts[i]) 1133 if (!chip->hosts[i])