diff options
Diffstat (limited to 'drivers/net/ppp_generic.c')
-rw-r--r-- | drivers/net/ppp_generic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 3ef0092dc09c..ef3325b69233 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
@@ -2684,8 +2684,7 @@ static void __exit ppp_cleanup(void) | |||
2684 | if (atomic_read(&ppp_unit_count) || atomic_read(&channel_count)) | 2684 | if (atomic_read(&ppp_unit_count) || atomic_read(&channel_count)) |
2685 | printk(KERN_ERR "PPP: removing module but units remain!\n"); | 2685 | printk(KERN_ERR "PPP: removing module but units remain!\n"); |
2686 | cardmap_destroy(&all_ppp_units); | 2686 | cardmap_destroy(&all_ppp_units); |
2687 | if (unregister_chrdev(PPP_MAJOR, "ppp") != 0) | 2687 | unregister_chrdev(PPP_MAJOR, "ppp"); |
2688 | printk(KERN_ERR "PPP: failed to unregister PPP device\n"); | ||
2689 | device_destroy(ppp_class, MKDEV(PPP_MAJOR, 0)); | 2688 | device_destroy(ppp_class, MKDEV(PPP_MAJOR, 0)); |
2690 | class_destroy(ppp_class); | 2689 | class_destroy(ppp_class); |
2691 | } | 2690 | } |