diff options
Diffstat (limited to 'arch/powerpc/sysdev/fsl_msi.c')
-rw-r--r-- | arch/powerpc/sysdev/fsl_msi.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index e2ee226464f8..de40b48b460e 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch/powerpc/sysdev/fsl_msi.c | |||
@@ -125,14 +125,6 @@ static int fsl_msi_init_allocator(struct fsl_msi *msi_data) | |||
125 | return 0; | 125 | return 0; |
126 | } | 126 | } |
127 | 127 | ||
128 | static int fsl_msi_check_device(struct pci_dev *pdev, int nvec, int type) | ||
129 | { | ||
130 | if (type == PCI_CAP_ID_MSIX) | ||
131 | pr_debug("fslmsi: MSI-X untested, trying anyway.\n"); | ||
132 | |||
133 | return 0; | ||
134 | } | ||
135 | |||
136 | static void fsl_teardown_msi_irqs(struct pci_dev *pdev) | 128 | static void fsl_teardown_msi_irqs(struct pci_dev *pdev) |
137 | { | 129 | { |
138 | struct msi_desc *entry; | 130 | struct msi_desc *entry; |
@@ -189,6 +181,9 @@ static int fsl_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) | |||
189 | struct msi_msg msg; | 181 | struct msi_msg msg; |
190 | struct fsl_msi *msi_data; | 182 | struct fsl_msi *msi_data; |
191 | 183 | ||
184 | if (type == PCI_CAP_ID_MSIX) | ||
185 | pr_debug("fslmsi: MSI-X untested, trying anyway.\n"); | ||
186 | |||
192 | /* | 187 | /* |
193 | * If the PCI node has an fsl,msi property, then we need to use it | 188 | * If the PCI node has an fsl,msi property, then we need to use it |
194 | * to find the specific MSI. | 189 | * to find the specific MSI. |
@@ -528,7 +523,6 @@ static int fsl_of_msi_probe(struct platform_device *dev) | |||
528 | if (!ppc_md.setup_msi_irqs) { | 523 | if (!ppc_md.setup_msi_irqs) { |
529 | ppc_md.setup_msi_irqs = fsl_setup_msi_irqs; | 524 | ppc_md.setup_msi_irqs = fsl_setup_msi_irqs; |
530 | ppc_md.teardown_msi_irqs = fsl_teardown_msi_irqs; | 525 | ppc_md.teardown_msi_irqs = fsl_teardown_msi_irqs; |
531 | ppc_md.msi_check_device = fsl_msi_check_device; | ||
532 | } else if (ppc_md.setup_msi_irqs != fsl_setup_msi_irqs) { | 526 | } else if (ppc_md.setup_msi_irqs != fsl_setup_msi_irqs) { |
533 | dev_err(&dev->dev, "Different MSI driver already installed!\n"); | 527 | dev_err(&dev->dev, "Different MSI driver already installed!\n"); |
534 | err = -ENODEV; | 528 | err = -ENODEV; |