Merge /spare/repo/netdev-2.6 branch 'ieee80211'
[powerpc.git] / drivers / net / ppp_synctty.c
index 7d0150b..fd9f501 100644 (file)
@@ -793,7 +793,7 @@ err:
 static void __exit
 ppp_sync_cleanup(void)
 {
-       if (tty_register_ldisc(N_SYNC_PPP, NULL) != 0)
+       if (tty_unregister_ldisc(N_SYNC_PPP) != 0)
                printk(KERN_ERR "failed to unregister Sync PPP line discipline\n");
 }