source: trunk/target/linux/omap24xx/patches-2.6.38/506-cbus-retu-irq-handler-locking.patch @ 25796

Last change on this file since 25796 was 25796, checked in by mb, 5 years ago

cbus-retu: Add IRQ handler locking

File size: 622 bytes
  • drivers/cbus/retu.c

    old new static irqreturn_t retu_irq_handler(int 
    198198        u16                     idr; 
    199199        u16                     imr; 
    200200 
     201        mutex_lock(&retu->mutex); 
    201202        idr = __retu_read_reg(retu, RETU_REG_IDR); 
    202203        imr = __retu_read_reg(retu, RETU_REG_IMR); 
    203         idr &= ~imr; 
     204        mutex_unlock(&retu->mutex); 
    204205 
     206        idr &= ~imr; 
    205207        if (!idr) { 
    206208                dev_vdbg(retu->dev, "No IRQ, spurious?\n"); 
    207209                return IRQ_NONE; 
Note: See TracBrowser for help on using the repository browser.