|
@@ -306,25 +306,22 @@ static irqreturn_t interrupt_hw(int irq, void *dev_id)
|
|
return IRQ_NONE;
|
|
return IRQ_NONE;
|
|
}
|
|
}
|
|
|
|
|
|
- if( 0 != (dev->ext)) {
|
|
|
|
- if( 0 != (dev->ext->irq_mask & isr )) {
|
|
|
|
- if( 0 != dev->ext->irq_func ) {
|
|
|
|
|
|
+ if (dev->ext) {
|
|
|
|
+ if (dev->ext->irq_mask & isr) {
|
|
|
|
+ if (dev->ext->irq_func)
|
|
dev->ext->irq_func(dev, &isr);
|
|
dev->ext->irq_func(dev, &isr);
|
|
- }
|
|
|
|
isr &= ~dev->ext->irq_mask;
|
|
isr &= ~dev->ext->irq_mask;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (0 != (isr & (MASK_27))) {
|
|
if (0 != (isr & (MASK_27))) {
|
|
DEB_INT(("irq: RPS0 (0x%08x).\n",isr));
|
|
DEB_INT(("irq: RPS0 (0x%08x).\n",isr));
|
|
- if( 0 != dev->vv_data && 0 != dev->vv_callback) {
|
|
|
|
|
|
+ if (dev->vv_data && dev->vv_callback)
|
|
dev->vv_callback(dev,isr);
|
|
dev->vv_callback(dev,isr);
|
|
- }
|
|
|
|
isr &= ~MASK_27;
|
|
isr &= ~MASK_27;
|
|
}
|
|
}
|
|
if (0 != (isr & (MASK_28))) {
|
|
if (0 != (isr & (MASK_28))) {
|
|
- if( 0 != dev->vv_data && 0 != dev->vv_callback) {
|
|
|
|
|
|
+ if (dev->vv_data && dev->vv_callback)
|
|
dev->vv_callback(dev,isr);
|
|
dev->vv_callback(dev,isr);
|
|
- }
|
|
|
|
isr &= ~MASK_28;
|
|
isr &= ~MASK_28;
|
|
}
|
|
}
|
|
if (0 != (isr & (MASK_16|MASK_17))) {
|
|
if (0 != (isr & (MASK_16|MASK_17))) {
|