[PATCH] AX.25: Convert mkiss.c to DEFINE_RWLOCK
authorRalf Baechle <ralf@linux-mips.org>
Tue, 4 Oct 2005 11:22:16 +0000 (12:22 +0100)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 4 Oct 2005 11:42:22 +0000 (07:42 -0400)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
 drivers/net/hamradio/mkiss.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/hamradio/mkiss.c

index 793ae12a25714d3a079bfede7a9b954eb37bbc24..331a75c8aee2d5dfe4aea5ad0e0751cabe706099 100644 (file)
@@ -622,7 +622,7 @@ static void ax_setup(struct net_device *dev)
  * best way to fix this is to use a rwlock in the tty struct, but for now we
  * use a single global rwlock for all ttys in ppp line discipline.
  */
-static rwlock_t disc_data_lock = RW_LOCK_UNLOCKED;
+static DEFINE_RWLOCK(disc_data_lock);
 
 static struct mkiss *mkiss_get(struct tty_struct *tty)
 {