]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TTY: isdn, do not play with module refcounts
authorJiri Slaby <jslaby@suse.cz>
Mon, 2 Apr 2012 11:53:51 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 18:16:54 +0000 (11:16 -0700)
commitce93d33cf45db9893cfc725a2b470da15bfe4435
tree364b1ff9f6beead5f94746d674ed03a93ecc0184
parent6776a2f07924192fd168bdceb1a00d10630edb4d
TTY: isdn, do not play with module refcounts

The module which called allocate_tty_driver is already refcounted by
the TTY layer automatically. And since THIS_MODULE is isdn_tty and it
allocated the tty_driver, there is no need to do the counts in isdn's
tty->ops->open/close.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/isdn/i4l/isdn_tty.c
include/linux/isdn.h