projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8a9a11
)
pci: pcie-designware: Remove irq_desc abuse
author
Thomas Gleixner
<
[email protected]
>
Sun, 23 Feb 2014 21:40:11 +0000
(21:40 +0000)
committer
Thomas Gleixner
<
[email protected]
>
Tue, 4 Mar 2014 16:37:52 +0000
(17:37 +0100)
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]
>
drivers/pci/host/pcie-designware.c
patch
|
blob
|
history
diff --git
a/drivers/pci/host/pcie-designware.c
b/drivers/pci/host/pcie-designware.c
index 17ce88f79d2b1ed3bbd351726f9d0af68be7d9ba..2e48ecf09e2c5a120d4b07879904a0384137982d 100644
(file)
--- 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();