xmm7680-pci: adopt fix.patch to 5.15
put_tty_driver() has been dropped as it is only an alias for tty_driver_kref_put().master
parent
81f8f4a66a
commit
6d2274218d
|
@ -1,5 +1,5 @@
|
|||
diff --git a/xmm7360.c b/xmm7360.c
|
||||
index ccd149d..acc7fea 100644
|
||||
index ccd149d..5a4dc74 100644
|
||||
--- a/xmm7360.c
|
||||
+++ b/xmm7360.c
|
||||
@@ -1272,7 +1272,7 @@ static int xmm7360_tty_write(struct tty_struct *tty,
|
||||
|
@ -11,3 +11,12 @@ index ccd149d..acc7fea 100644
|
|||
{
|
||||
struct queue_pair *qp = tty->driver_data;
|
||||
if (!xmm7360_qp_can_write(qp))
|
||||
@@ -1555,7 +1555,7 @@ static void xmm7360_exit(void)
|
||||
pci_unregister_driver(&xmm7360_driver);
|
||||
unregister_chrdev_region(xmm_base, 8);
|
||||
tty_unregister_driver(xmm7360_tty_driver);
|
||||
- put_tty_driver(xmm7360_tty_driver);
|
||||
+ tty_driver_kref_put(xmm7360_tty_driver);
|
||||
}
|
||||
|
||||
module_init(xmm7360_init);
|
||||
|
|
Loading…
Reference in New Issue