Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pci: pcie-designware: Remove irq_desc abuse

There is no reason to care about irq_desc in that context, escpecially
as irq_data for that interrupt is retrieved as well.

Use the proper accessor for the msi descriptor

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Cc: Mohit Kumar <mohit.kumar@st.com>
Cc: pci <linux-pci@vger.kernel.org>
Link: http://lkml.kernel.org/r/20140223212736.987803648@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

+1 -3
+1 -3
drivers/pci/host/pcie-designware.c
··· 294 294 static void clear_irq(unsigned int irq) 295 295 { 296 296 unsigned int pos, nvec; 297 - struct irq_desc *desc; 298 297 struct msi_desc *msi; 299 298 struct pcie_port *pp; 300 299 struct irq_data *data = irq_get_irq_data(irq); 301 300 302 301 /* get the port structure */ 303 - desc = irq_to_desc(irq); 304 - msi = irq_desc_get_msi_desc(desc); 302 + msi = irq_data_get_msi(data); 305 303 pp = sys_to_pcie(msi->dev->bus->sysdata); 306 304 if (!pp) { 307 305 BUG();