Skip to content

Commit

Permalink
powerpc: Fix irq_set_affinity() return values
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Alexander Gordeev authored and Benjamin Herrenschmidt committed May 14, 2013
1 parent ca9d7ae commit dcb615a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/wsp/ics.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static int wsp_chip_set_affinity(struct irq_data *d,
xive = xive_set_server(xive, get_irq_server(ics, hw_irq));
wsp_ics_set_xive(ics, hw_irq, xive);

return 0;
return IRQ_SET_MASK_OK;
}

static struct irq_chip wsp_irq_chip = {
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/ehv_pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int ehv_pic_set_affinity(struct irq_data *d, const struct cpumask *dest,
ev_int_set_config(src, config, prio, cpuid);
spin_unlock_irqrestore(&ehv_pic_lock, flags);

return 0;
return IRQ_SET_MASK_OK;
}

static unsigned int ehv_pic_type_to_vecpri(unsigned int type)
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ int mpic_set_affinity(struct irq_data *d, const struct cpumask *cpumask,
mpic_physmask(mask));
}

return 0;
return IRQ_SET_MASK_OK;
}

static unsigned int mpic_type_to_vecpri(struct mpic *mpic, unsigned int type)
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/xics/ics-opal.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static int ics_opal_set_affinity(struct irq_data *d,
__func__, d->irq, hw_irq, server, rc);
return -1;
}
return 0;
return IRQ_SET_MASK_OK;
}

static struct irq_chip ics_opal_irq_chip = {
Expand Down

0 comments on commit dcb615a

Please sign in to comment.