From: Pierre Ossman Date: Tue, 30 Jan 2007 06:55:15 +0000 (+0100) Subject: mmc: handle pci_enable_device() return value in sdhci X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df1c4b7bf7f3b3a48d78c6e5c2fc5b9a1c01b821;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) 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])