[madwifi] make madwifi compile with kernel 2.6.29.
[openwrt.git] / target / linux / rb532 / patches-2.6.28 / 015-korina_irqf_flags.patch
1 As the kernel warning states: "IRQF_DISABLED is not guaranteed on shared
2 IRQs". Since these IRQs' values are hardcoded and my test system doesn't
3 show any shared use of IRQs at all, rather make them non-shared than
4 non-disabled.
5
6 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
7 ---
8 drivers/net/korina.c | 8 ++++----
9 1 files changed, 4 insertions(+), 4 deletions(-)
10
11 --- a/drivers/net/korina.c
12 +++ b/drivers/net/korina.c
13 @@ -998,14 +998,14 @@ static int korina_open(struct net_device
14 * that handles the Done Finished
15 * Ovr and Und Events */
16 ret = request_irq(lp->rx_irq, &korina_rx_dma_interrupt,
17 - IRQF_SHARED | IRQF_DISABLED, "Korina ethernet Rx", dev);
18 + IRQF_DISABLED, "Korina ethernet Rx", dev);
19 if (ret < 0) {
20 printk(KERN_ERR DRV_NAME "%s: unable to get Rx DMA IRQ %d\n",
21 dev->name, lp->rx_irq);
22 goto err_release;
23 }
24 ret = request_irq(lp->tx_irq, &korina_tx_dma_interrupt,
25 - IRQF_SHARED | IRQF_DISABLED, "Korina ethernet Tx", dev);
26 + IRQF_DISABLED, "Korina ethernet Tx", dev);
27 if (ret < 0) {
28 printk(KERN_ERR DRV_NAME "%s: unable to get Tx DMA IRQ %d\n",
29 dev->name, lp->tx_irq);
30 @@ -1014,7 +1014,7 @@ static int korina_open(struct net_device
31
32 /* Install handler for overrun error. */
33 ret = request_irq(lp->ovr_irq, &korina_ovr_interrupt,
34 - IRQF_SHARED | IRQF_DISABLED, "Ethernet Overflow", dev);
35 + IRQF_DISABLED, "Ethernet Overflow", dev);
36 if (ret < 0) {
37 printk(KERN_ERR DRV_NAME"%s: unable to get OVR IRQ %d\n",
38 dev->name, lp->ovr_irq);
39 @@ -1023,7 +1023,7 @@ static int korina_open(struct net_device
40
41 /* Install handler for underflow error. */
42 ret = request_irq(lp->und_irq, &korina_und_interrupt,
43 - IRQF_SHARED | IRQF_DISABLED, "Ethernet Underflow", dev);
44 + IRQF_DISABLED, "Ethernet Underflow", dev);
45 if (ret < 0) {
46 printk(KERN_ERR DRV_NAME "%s: unable to get UND IRQ %d\n",
47 dev->name, lp->und_irq);
This page took 0.039573 seconds and 5 git commands to generate.