提交 df1c4b7b 编写于 作者: P Pierre Ossman

mmc: handle pci_enable_device() return value in sdhci

Make sure we report back any errors from pci_enable_device().
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 397411e6
......@@ -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])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册