提交 e6039832 编写于 作者: A Alexander Stein 提交者: Chris Ball

mmc: sdhci-pci: Add MSI support

Signed-off-by: NAlexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 2378975b
......@@ -1385,6 +1385,8 @@ static int __devinit sdhci_pci_probe(struct pci_dev *pdev,
slots = chip->num_slots; /* Quirk may have changed this */
pci_enable_msi(pdev);
for (i = 0; i < slots; i++) {
slot = sdhci_pci_probe_slot(pdev, chip, first_bar, i);
if (IS_ERR(slot)) {
......@@ -1403,6 +1405,8 @@ static int __devinit sdhci_pci_probe(struct pci_dev *pdev,
return 0;
free:
pci_disable_msi(pdev);
pci_set_drvdata(pdev, NULL);
kfree(chip);
......@@ -1425,6 +1429,8 @@ static void __devexit sdhci_pci_remove(struct pci_dev *pdev)
for (i = 0; i < chip->num_slots; i++)
sdhci_pci_remove_slot(chip->slots[i]);
pci_disable_msi(pdev);
pci_set_drvdata(pdev, NULL);
kfree(chip);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册