projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
397411e
)
mmc: handle pci_enable_device() return value in sdhci
author
Pierre Ossman
<drzeus@drzeus.cx>
Tue, 30 Jan 2007 06:55:15 +0000
(07:55 +0100)
committer
Pierre 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/sdhci.c
b/drivers/mmc/sdhci.c
index 99f1db92295bd7005bca1017a965a868d7afb7f0..b57393c7f9b554aee01c753992fc11b1e96fbd0e 100644
(file)
--- 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])