diff options
| author | Thomas Gleixner <[email protected]> | 2014-02-23 21:40:11 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2014-03-04 17:37:52 +0100 |
| commit | f7bfca6db60a6ca0a73126918b2fb6f851065947 (patch) | |
| tree | c424638f44f32f7b823d8d47caa1160952bb7b94 | |
| parent | b8a9a11b976810ba12a43c4fe699a14892c97e52 (diff) | |
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 <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
Acked-by: Jingoo Han <[email protected]>
Cc: Mohit Kumar <[email protected]>
Cc: pci <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
| -rw-r--r-- | drivers/pci/host/pcie-designware.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index 17ce88f79d2b..2e48ecf09e2c 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -294,14 +294,12 @@ no_valid_irq: static void clear_irq(unsigned int irq) { unsigned int pos, nvec; - struct irq_desc *desc; struct msi_desc *msi; struct pcie_port *pp; struct irq_data *data = irq_get_irq_data(irq); /* get the port structure */ - desc = irq_to_desc(irq); - msi = irq_desc_get_msi_desc(desc); + msi = irq_data_get_msi(data); pp = sys_to_pcie(msi->dev->bus->sysdata); if (!pp) { BUG(); |