[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210721113305.1524059-1-mudongliangabcd@gmail.com>
Date: Wed, 21 Jul 2021 19:33:04 +0800
From: Dongliang Mu <mudongliangabcd@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>
Cc: Dongliang Mu <mudongliangabcd@...il.com>, stable@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...e.de>,
linux-kernel@...r.kernel.org
Subject: [PATCH v2] tty: nozomi: tty_unregister_device -> tty_port_unregister_device
The pairwise api invocation of tty_port_register_device should be
tty_port_unregister_device, other than tty_unregister_device.
Fixes: a6afd9f3e819 ("tty: move a number of tty drivers from drivers/char/ to drivers/tty/")
Cc: stable@...r.kernel.org
Signed-off-by: Dongliang Mu <mudongliangabcd@...il.com>
---
drivers/tty/nozomi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c
index 0c80f25c8c3d..08bdd82f60b5 100644
--- a/drivers/tty/nozomi.c
+++ b/drivers/tty/nozomi.c
@@ -1417,7 +1417,8 @@ static int nozomi_card_init(struct pci_dev *pdev,
err_free_tty:
for (i--; i >= 0; i--) {
- tty_unregister_device(ntty_driver, dc->index_start + i);
+ tty_port_unregister_device(&dc->port[i].port, ntty_driver,
+ dc->index_start + i);
tty_port_destroy(&dc->port[i].port);
}
free_irq(pdev->irq, dc);
--
2.25.1
Powered by blists - more mailing lists