From: Magnus D. <mag...@gm...> - 2007-08-15 04:53:32
|
On 8/15/07, Magnus Damm <mag...@gm...> wrote: > sh: intc - primary priority masking fixes Uhm, this patch doesn't compile... Sorry about that. > --- 0001/arch/sh/kernel/cpu/irq/intc.c > +++ work/arch/sh/kernel/cpu/irq/intc.c 2007-08-14 14:04:12.000000000 +0900 > @@ -226,7 +238,7 @@ int intc_set_priority(unsigned int irq, > > ihp = intc_find_irq(d->prio, d->nr_prio, irq); > if (ihp) { > - if (prio >= ((1 << _INTC_WIDTH(ihp->handle)) - 1)) > + if (prio >= (1 << _INTC_WIDTH(ihp->handle)) > return -EINVAL; > > intc_prio_level[irq] = prio; I'm missing a ")" in the if statement above. Apart from that the patch should be ok. Markus, could you please fix this by hand and check if the patch is ok? / magnus |