]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/nslu2-kernel/2.6.14/15-ixp4xx-set-irq-type-return.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / nslu2-kernel / 2.6.14 / 15-ixp4xx-set-irq-type-return.patch
1 # The ixp4xx_set_irq_type API is missing return statements which causes
2 # the result to be unusable and the error detection non existent.
3 #
4 --- linux-2.6.13/arch/arm/mach-ixp4xx/orig/common.c     2005-09-25 09:52:57.658059680 -0700
5 +++ linux-2.6.13/arch/arm/mach-ixp4xx/common.c  2005-09-25 09:53:02.354355199 -0700
6 @@ -125,7 +125,8 @@
7         } else if (type & IRQT_LOW) {
8                 int_style = IXP4XX_GPIO_STYLE_ACTIVE_LOW;
9                 irq_type = IXP4XX_IRQ_LEVEL;
10 -       }
11 +       } else
12 +               return -EINVAL;
13  
14         ixp4xx_config_irq(irq, irq_type);
15  
16 @@ -142,6 +143,8 @@
17  
18         /* Set the new style */
19         *int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE));
20 +
21 +       return 0;
22  }
23  
24  static void ixp4xx_irq_mask(unsigned int irq)