[PATCH 1/2] genirq: use proper interface

From: Yun Wu
Date: Tue Mar 17 2015 - 04:45:46 EST


An interface provided by kernel/irq/chip.c is designed to do the
same thing, so just use it.

Signed-off-by: Yun Wu <wuyun.wu@xxxxxxxxxx>
---
kernel/irq/msi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index 3e18163..b773708 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -50,11 +50,10 @@ static inline void irq_chip_write_msi_msg(struct irq_data *data,
int msi_domain_set_affinity(struct irq_data *irq_data,
const struct cpumask *mask, bool force)
{
- struct irq_data *parent = irq_data->parent_data;
struct msi_msg msg;
int ret;

- ret = parent->chip->irq_set_affinity(parent, mask, force);
+ ret = irq_chip_set_affinity_parent(irq_data, mask, force);
if (ret >= 0 && ret != IRQ_SET_MASK_OK_DONE) {
BUG_ON(irq_chip_compose_msi_msg(irq_data, &msg));
irq_chip_write_msi_msg(irq_data, &msg);
--
1.8.0


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/