Commit dcb615ae authored by Alexander Gordeev's avatar Alexander Gordeev Committed by Benjamin Herrenschmidt

powerpc: Fix irq_set_affinity() return values

Signed-off-by: default avatarAlexander Gordeev <agordeev@redhat.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent ca9d7aea
...@@ -361,7 +361,7 @@ static int wsp_chip_set_affinity(struct irq_data *d, ...@@ -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)); xive = xive_set_server(xive, get_irq_server(ics, hw_irq));
wsp_ics_set_xive(ics, hw_irq, xive); wsp_ics_set_xive(ics, hw_irq, xive);
return 0; return IRQ_SET_MASK_OK;
} }
static struct irq_chip wsp_irq_chip = { static struct irq_chip wsp_irq_chip = {
......
...@@ -81,7 +81,7 @@ int ehv_pic_set_affinity(struct irq_data *d, const struct cpumask *dest, ...@@ -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); ev_int_set_config(src, config, prio, cpuid);
spin_unlock_irqrestore(&ehv_pic_lock, flags); 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) static unsigned int ehv_pic_type_to_vecpri(unsigned int type)
......
...@@ -836,7 +836,7 @@ int mpic_set_affinity(struct irq_data *d, const struct cpumask *cpumask, ...@@ -836,7 +836,7 @@ int mpic_set_affinity(struct irq_data *d, const struct cpumask *cpumask,
mpic_physmask(mask)); mpic_physmask(mask));
} }
return 0; return IRQ_SET_MASK_OK;
} }
static unsigned int mpic_type_to_vecpri(struct mpic *mpic, unsigned int type) static unsigned int mpic_type_to_vecpri(struct mpic *mpic, unsigned int type)
......
...@@ -148,7 +148,7 @@ static int ics_opal_set_affinity(struct irq_data *d, ...@@ -148,7 +148,7 @@ static int ics_opal_set_affinity(struct irq_data *d,
__func__, d->irq, hw_irq, server, rc); __func__, d->irq, hw_irq, server, rc);
return -1; return -1;
} }
return 0; return IRQ_SET_MASK_OK;
} }
static struct irq_chip ics_opal_irq_chip = { static struct irq_chip ics_opal_irq_chip = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment