]> err.no Git - linux-2.6/commitdiff
mmc: handle pci_enable_device() return value in sdhci
authorPierre Ossman <drzeus@drzeus.cx>
Tue, 30 Jan 2007 06:55:15 +0000 (07:55 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Sun, 4 Feb 2007 19:54:11 +0000 (20:54 +0100)
Make sure we report back any errors from pci_enable_device().

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/sdhci.c

index 99f1db92295bd7005bca1017a965a868d7afb7f0..b57393c7f9b554aee01c753992fc11b1e96fbd0e 100644 (file)
@@ -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])