Commit c643794e authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

staging: dgap: remove useless a variable within board_t

The use_interrupts is used only in dagp_request_irq() for checking
a value from user config file. It doesn't need in board_t struct.
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9f20ecc5
...@@ -837,12 +837,10 @@ static int dgap_request_irq(struct board_t *brd) ...@@ -837,12 +837,10 @@ static int dgap_request_irq(struct board_t *brd)
if (!brd || brd->magic != DGAP_BOARD_MAGIC) if (!brd || brd->magic != DGAP_BOARD_MAGIC)
return -ENODEV; return -ENODEV;
brd->use_interrupts = dgap_config_get_useintr(brd);
/* /*
* Set up our interrupt handler if we are set to do interrupts. * 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); rc = request_irq(brd->irq, dgap_intr, IRQF_SHARED, "DGAP", brd);
......
...@@ -558,7 +558,6 @@ struct board_t { ...@@ -558,7 +558,6 @@ struct board_t {
u16 nasync; /* Number of ports on card */ u16 nasync; /* Number of ports on card */
u32 use_interrupts; /* Should we be interrupt driven? */
ulong irq; /* Interrupt request number */ ulong irq; /* Interrupt request number */
ulong intr_count; /* Count of interrupts */ ulong intr_count; /* Count of interrupts */
u32 intr_used; /* Non-zero if using interrupts */ u32 intr_used; /* Non-zero if using interrupts */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment