diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ppp_generic.c | 1 | ||||
-rw-r--r-- | drivers/net/wan/cosa.c | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 52bc51545134..16a59cafb8d3 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
@@ -2674,7 +2674,6 @@ static void __exit ppp_cleanup(void) | |||
2674 | cardmap_destroy(&all_ppp_units); | 2674 | cardmap_destroy(&all_ppp_units); |
2675 | if (unregister_chrdev(PPP_MAJOR, "ppp") != 0) | 2675 | if (unregister_chrdev(PPP_MAJOR, "ppp") != 0) |
2676 | printk(KERN_ERR "PPP: failed to unregister PPP device\n"); | 2676 | printk(KERN_ERR "PPP: failed to unregister PPP device\n"); |
2677 | devfs_remove("ppp"); | ||
2678 | class_device_destroy(ppp_class, MKDEV(PPP_MAJOR, 0)); | 2677 | class_device_destroy(ppp_class, MKDEV(PPP_MAJOR, 0)); |
2679 | class_destroy(ppp_class); | 2678 | class_destroy(ppp_class); |
2680 | } | 2679 | } |
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index c7b530628c8e..3d1e2b6700a7 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
@@ -418,12 +418,9 @@ static void __exit cosa_exit(void) | |||
418 | int i; | 418 | int i; |
419 | printk(KERN_INFO "Unloading the cosa module\n"); | 419 | printk(KERN_INFO "Unloading the cosa module\n"); |
420 | 420 | ||
421 | for (i=0; i<nr_cards; i++) { | 421 | for (i=0; i<nr_cards; i++) |
422 | class_device_destroy(cosa_class, MKDEV(cosa_major, i)); | 422 | class_device_destroy(cosa_class, MKDEV(cosa_major, i)); |
423 | devfs_remove("cosa/%d", i); | ||
424 | } | ||
425 | class_destroy(cosa_class); | 423 | class_destroy(cosa_class); |
426 | devfs_remove("cosa"); | ||
427 | for (cosa=cosa_cards; nr_cards--; cosa++) { | 424 | for (cosa=cosa_cards; nr_cards--; cosa++) { |
428 | /* Clean up the per-channel data */ | 425 | /* Clean up the per-channel data */ |
429 | for (i=0; i<cosa->nchannels; i++) { | 426 | for (i=0; i<cosa->nchannels; i++) { |