omap24xx: Fix missing symbols for mac80211
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 506-cbus-retu-irq-handler-locking.patch
1 Index: linux-2.6.38-rc6/drivers/cbus/retu.c
2 ===================================================================
3 --- linux-2.6.38-rc6.orig/drivers/cbus/retu.c   2011-02-28 15:21:10.645505891 +0100
4 +++ linux-2.6.38-rc6/drivers/cbus/retu.c        2011-02-28 15:22:24.030477769 +0100
5 @@ -198,10 +198,12 @@ static irqreturn_t retu_irq_handler(int
6         u16                     idr;
7         u16                     imr;
8  
9 +       mutex_lock(&retu->mutex);
10         idr = __retu_read_reg(retu, RETU_REG_IDR);
11         imr = __retu_read_reg(retu, RETU_REG_IMR);
12 -       idr &= ~imr;
13 +       mutex_unlock(&retu->mutex);
14  
15 +       idr &= ~imr;
16         if (!idr) {
17                 dev_vdbg(retu->dev, "No IRQ, spurious?\n");
18                 return IRQ_NONE;