]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
tty: use krefs to protect driver module counts
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:37:36 +0000 (10:37 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:40 +0000 (09:51 -0700)
commit6f967f7891076abc09e12ce952f85825e7ee8caf
tree1ebd77aae1dc887676915b3c469d84681db2d9ac
parent9c9f4ded90a59eee84e15f5fd38c03d60184e112
tty: use krefs to protect driver module counts

The tty layer keeps driver module counts that are used so the driver knows
when it can be unloaded. For obvious reasons we want to tie that to the
refcounting properly.

At this point the driver side itself isn't refcounted nicely but we can do
that later and kref the drivers.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c