diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index ff953767014e..8929dbf912b9 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -837,12 +837,10 @@ static int dgap_request_irq(struct board_t *brd) if (!brd || brd->magic != DGAP_BOARD_MAGIC) return -ENODEV; - brd->use_interrupts = dgap_config_get_useintr(brd); - /* * Set up our interrupt handler if we are set to do interrupts. */ - if (brd->use_interrupts && brd->irq) { + if (dgap_config_get_useintr(brd) && brd->irq) { rc = request_irq(brd->irq, dgap_intr, IRQF_SHARED, "DGAP", brd); diff --git a/drivers/staging/dgap/dgap.h b/drivers/staging/dgap/dgap.h index 52e1d649dedf..a0307b9992da 100644 --- a/drivers/staging/dgap/dgap.h +++ b/drivers/staging/dgap/dgap.h @@ -558,7 +558,6 @@ struct board_t { u16 nasync; /* Number of ports on card */ - u32 use_interrupts; /* Should we be interrupt driven? */ ulong irq; /* Interrupt request number */ ulong intr_count; /* Count of interrupts */ u32 intr_used; /* Non-zero if using interrupts */