diff options
Diffstat (limited to 'arch/powerpc/kernel/msi.c')
-rw-r--r-- | arch/powerpc/kernel/msi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/msi.c b/arch/powerpc/kernel/msi.c index 8bbc12d20f5c..71bd161640cf 100644 --- a/arch/powerpc/kernel/msi.c +++ b/arch/powerpc/kernel/msi.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | #include <asm/machdep.h> | 14 | #include <asm/machdep.h> |
15 | 15 | ||
16 | int arch_msi_check_device(struct pci_dev* dev, int nvec, int type) | 16 | int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) |
17 | { | 17 | { |
18 | if (!ppc_md.setup_msi_irqs || !ppc_md.teardown_msi_irqs) { | 18 | if (!ppc_md.setup_msi_irqs || !ppc_md.teardown_msi_irqs) { |
19 | pr_debug("msi: Platform doesn't provide MSI callbacks.\n"); | 19 | pr_debug("msi: Platform doesn't provide MSI callbacks.\n"); |
@@ -24,16 +24,6 @@ int arch_msi_check_device(struct pci_dev* dev, int nvec, int type) | |||
24 | if (type == PCI_CAP_ID_MSI && nvec > 1) | 24 | if (type == PCI_CAP_ID_MSI && nvec > 1) |
25 | return 1; | 25 | return 1; |
26 | 26 | ||
27 | if (ppc_md.msi_check_device) { | ||
28 | pr_debug("msi: Using platform check routine.\n"); | ||
29 | return ppc_md.msi_check_device(dev, nvec, type); | ||
30 | } | ||
31 | |||
32 | return 0; | ||
33 | } | ||
34 | |||
35 | int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | ||
36 | { | ||
37 | return ppc_md.setup_msi_irqs(dev, nvec, type); | 27 | return ppc_md.setup_msi_irqs(dev, nvec, type); |
38 | } | 28 | } |
39 | 29 | ||