mips: Kill pointless destroy_irq()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 7 May 2014 15:44:05 +0000 (15:44 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 May 2014 12:05:18 +0000 (14:05 +0200)
Copy and paste leftovers with no functionality at all.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Grant Likely <grant.likely@linaro.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Link: http://lkml.kernel.org/r/20140507154334.008113902@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/mips/pci/msi-xlp.c
arch/mips/pci/pci-xlr.c

index afd8405e0188248dbea2dd90e2e8949e25895d67..3249685e03ad6f2771c4da88e59d62697ef0c855 100644 (file)
@@ -206,14 +206,8 @@ static struct irq_chip xlp_msix_chip = {
        .irq_unmask     = unmask_msi_irq,
 };
 
-void destroy_irq(unsigned int irq)
-{
-           /* nothing to do yet */
-}
-
 void arch_teardown_msi_irq(unsigned int irq)
 {
-       destroy_irq(irq);
 }
 
 /*
@@ -298,10 +292,8 @@ static int xlp_setup_msi(uint64_t lnkbase, int node, int link,
 
        xirq = xirq + msivec;           /* msi mapped to global irq space */
        ret = irq_set_msi_desc(xirq, desc);
-       if (ret < 0) {
-               destroy_irq(xirq);
+       if (ret < 0)
                return ret;
-       }
 
        write_msi_msg(xirq, &msg);
        return 0;
index 4427abbd48b547a606fbe47a6d6bf7e5497b2bd7..0dde80332d3a14c18594b673e6aca15f67b4a9b5 100644 (file)
@@ -214,14 +214,8 @@ static int get_irq_vector(const struct pci_dev *dev)
 }
 
 #ifdef CONFIG_PCI_MSI
-void destroy_irq(unsigned int irq)
-{
-           /* nothing to do yet */
-}
-
 void arch_teardown_msi_irq(unsigned int irq)
 {
-       destroy_irq(irq);
 }
 
 int arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc)
@@ -263,10 +257,8 @@ int arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc)
                MSI_DATA_DELIVERY_FIXED;
 
        ret = irq_set_msi_desc(irq, desc);
-       if (ret < 0) {
-               destroy_irq(irq);
+       if (ret < 0)
                return ret;
-       }
 
        write_msi_msg(irq, &msg);
        return 0;