]> err.no Git - linux-2.6/blobdiff - drivers/net/ppp_async.c
Merge /spare/repo/netdev-2.6/ branch 'ieee80211'
[linux-2.6] / drivers / net / ppp_async.c
index 33b9d79b1aadad177ee5b4dab213199bb8de63ff..5e48b9ab30455ca661f3c03c6bb128910778d22c 100644 (file)
@@ -1025,7 +1025,7 @@ static void async_lcp_peek(struct asyncppp *ap, unsigned char *data,
 
 static void __exit ppp_async_cleanup(void)
 {
-       if (tty_register_ldisc(N_PPP, NULL) != 0)
+       if (tty_unregister_ldisc(N_PPP) != 0)
                printk(KERN_ERR "failed to unregister PPP line discipline\n");
 }