Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=df1c4b7bf7f3b3a48d78c6e5c2fc5b9a1c01b821 Commit: df1c4b7bf7f3b3a48d78c6e5c2fc5b9a1c01b821 Parent: 397411e67ff473c36161d93e4c7ac6dc53e23503 Author: Pierre Ossman <[EMAIL PROTECTED]> AuthorDate: Tue Jan 30 07:55:15 2007 +0100 Committer: Pierre Ossman <[EMAIL PROTECTED]> CommitDate: Sun Feb 4 20:54:11 2007 +0100
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 <[EMAIL PROTECTED]> --- drivers/mmc/sdhci.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 99f1db9..b57393c 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]) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html