staging: dgnc: delete dpastatus board type variable.
It was only set, and never looked at, so drop the thing as no one cares about it. Cc: Lidza Louina <lidza.louina@gmail.com> Cc: Mark Hounschell <markh@compro.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
40ffac9a3a
commit
874e0ebebb
|
@ -94,7 +94,6 @@ static struct dgnc_board *dgnc_found_board(struct pci_dev *pdev, int id)
|
||||||
brd->maxports = dgnc_ids[id].maxports;
|
brd->maxports = dgnc_ids[id].maxports;
|
||||||
if (dgnc_ids[i].is_pci_express)
|
if (dgnc_ids[i].is_pci_express)
|
||||||
brd->bd_flags |= BD_IS_PCI_EXPRESS;
|
brd->bd_flags |= BD_IS_PCI_EXPRESS;
|
||||||
brd->dpastatus = BD_NOFEP;
|
|
||||||
init_waitqueue_head(&brd->state_wait);
|
init_waitqueue_head(&brd->state_wait);
|
||||||
|
|
||||||
spin_lock_init(&brd->bd_lock);
|
spin_lock_init(&brd->bd_lock);
|
||||||
|
@ -196,7 +195,6 @@ static int dgnc_request_irq(struct dgnc_board *brd)
|
||||||
dev_err(&brd->pdev->dev,
|
dev_err(&brd->pdev->dev,
|
||||||
"Failed to hook IRQ %d\n", brd->irq);
|
"Failed to hook IRQ %d\n", brd->irq);
|
||||||
brd->state = BOARD_FAILED;
|
brd->state = BOARD_FAILED;
|
||||||
brd->dpastatus = BD_NOFEP;
|
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -287,7 +285,6 @@ static int dgnc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||||
}
|
}
|
||||||
|
|
||||||
brd->state = BOARD_READY;
|
brd->state = BOARD_READY;
|
||||||
brd->dpastatus = BD_RUNNING;
|
|
||||||
|
|
||||||
dgnc_board[dgnc_num_boards++] = brd;
|
dgnc_board[dgnc_num_boards++] = brd;
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,6 @@ struct board_ops {
|
||||||
* @serial_name: Serial driver name.
|
* @serial_name: Serial driver name.
|
||||||
* @print_dirver: Pointer to the print driver.
|
* @print_dirver: Pointer to the print driver.
|
||||||
* @print_name: Print driver name.
|
* @print_name: Print driver name.
|
||||||
* @dpastatus: Board status as defined by DPA.
|
|
||||||
* @bd_dividend: Board/UART's specific dividend.
|
* @bd_dividend: Board/UART's specific dividend.
|
||||||
* @bd_ops: Pointer to board operations structure.
|
* @bd_ops: Pointer to board operations structure.
|
||||||
*/
|
*/
|
||||||
|
@ -179,8 +178,6 @@ struct dgnc_board {
|
||||||
struct tty_driver *print_driver;
|
struct tty_driver *print_driver;
|
||||||
char print_name[200];
|
char print_name[200];
|
||||||
|
|
||||||
u16 dpastatus;
|
|
||||||
|
|
||||||
uint bd_dividend;
|
uint bd_dividend;
|
||||||
|
|
||||||
struct board_ops *bd_ops;
|
struct board_ops *bd_ops;
|
||||||
|
|
|
@ -84,10 +84,6 @@ struct digi_getcounter {
|
||||||
unsigned long tbytes;
|
unsigned long tbytes;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Board State Definitions */
|
|
||||||
#define BD_RUNNING 0x0
|
|
||||||
#define BD_NOFEP 0x5
|
|
||||||
|
|
||||||
#define DIGI_SETCUSTOMBAUD _IOW('e', 106, int) /* Set integer baud rate */
|
#define DIGI_SETCUSTOMBAUD _IOW('e', 106, int) /* Set integer baud rate */
|
||||||
#define DIGI_GETCUSTOMBAUD _IOR('e', 107, int) /* Get integer baud rate */
|
#define DIGI_GETCUSTOMBAUD _IOR('e', 107, int) /* Get integer baud rate */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue