diff options
Diffstat (limited to 'drivers/tty/mxser.c')
-rw-r--r-- | drivers/tty/mxser.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c index e64fe40618cd..8bc265154ad7 100644 --- a/drivers/tty/mxser.c +++ b/drivers/tty/mxser.c | |||
@@ -2625,7 +2625,8 @@ static int __devinit mxser_probe(struct pci_dev *pdev, | |||
2625 | goto err_rel3; | 2625 | goto err_rel3; |
2626 | 2626 | ||
2627 | for (i = 0; i < brd->info->nports; i++) | 2627 | for (i = 0; i < brd->info->nports; i++) |
2628 | tty_register_device(mxvar_sdriver, brd->idx + i, &pdev->dev); | 2628 | tty_port_register_device(&brd->ports[i].port, mxvar_sdriver, |
2629 | brd->idx + i, &pdev->dev); | ||
2629 | 2630 | ||
2630 | pci_set_drvdata(pdev, brd); | 2631 | pci_set_drvdata(pdev, brd); |
2631 | 2632 | ||
@@ -2722,7 +2723,8 @@ static int __init mxser_module_init(void) | |||
2722 | 2723 | ||
2723 | brd->idx = m * MXSER_PORTS_PER_BOARD; | 2724 | brd->idx = m * MXSER_PORTS_PER_BOARD; |
2724 | for (i = 0; i < brd->info->nports; i++) | 2725 | for (i = 0; i < brd->info->nports; i++) |
2725 | tty_register_device(mxvar_sdriver, brd->idx + i, NULL); | 2726 | tty_port_register_device(&brd->ports[i].port, |
2727 | mxvar_sdriver, brd->idx + i, NULL); | ||
2726 | 2728 | ||
2727 | m++; | 2729 | m++; |
2728 | } | 2730 | } |