sh: intc: Use IRQ_SET_MASK_OK_NOCOPY for intc_set_affinity.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jan 2012 07:55:57 +0000 (16:55 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jan 2012 07:55:57 +0000 (16:55 +0900)
intc_set_affinity() updates the cpumask in place, so there's no need for
the upper layer to do this itself.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/intc/chip.c

index d90cb7e43920f7576a649a531dfb1387ec91be57..db10adf63dd75ed63bfeee2c11e4fee1ef2811f3 100644 (file)
@@ -73,7 +73,7 @@ static int intc_set_affinity(struct irq_data *data,
 
        cpumask_copy(data->affinity, cpumask);
 
-       return 0;
+       return IRQ_SET_MASK_OK_NOCOPY;
 }
 #endif