diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
| commit | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (patch) | |
| tree | 2624a44924c625c367f3cebf937853b9da2de282 /drivers/net/ppp_generic.c | |
| parent | 9f2fa466383ce100b90fe52cb4489d7a26bf72a9 (diff) | |
| parent | 29454dde27d8e340bb1987bad9aa504af7081eba (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'drivers/net/ppp_generic.c')
| -rw-r--r-- | drivers/net/ppp_generic.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index d643a097faa5..0ec6e9d57b94 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
| @@ -22,13 +22,11 @@ | |||
| 22 | * ==FILEVERSION 20041108== | 22 | * ==FILEVERSION 20041108== |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | #include <linux/config.h> | ||
| 26 | #include <linux/module.h> | 25 | #include <linux/module.h> |
| 27 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
| 28 | #include <linux/kmod.h> | 27 | #include <linux/kmod.h> |
| 29 | #include <linux/init.h> | 28 | #include <linux/init.h> |
| 30 | #include <linux/list.h> | 29 | #include <linux/list.h> |
| 31 | #include <linux/devfs_fs_kernel.h> | ||
| 32 | #include <linux/netdevice.h> | 30 | #include <linux/netdevice.h> |
| 33 | #include <linux/poll.h> | 31 | #include <linux/poll.h> |
| 34 | #include <linux/ppp_defs.h> | 32 | #include <linux/ppp_defs.h> |
| @@ -863,10 +861,6 @@ static int __init ppp_init(void) | |||
| 863 | goto out_chrdev; | 861 | goto out_chrdev; |
| 864 | } | 862 | } |
| 865 | class_device_create(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), NULL, "ppp"); | 863 | class_device_create(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), NULL, "ppp"); |
| 866 | err = devfs_mk_cdev(MKDEV(PPP_MAJOR, 0), | ||
| 867 | S_IFCHR|S_IRUSR|S_IWUSR, "ppp"); | ||
| 868 | if (err) | ||
| 869 | goto out_class; | ||
| 870 | } | 864 | } |
| 871 | 865 | ||
| 872 | out: | 866 | out: |
| @@ -874,9 +868,6 @@ out: | |||
| 874 | printk(KERN_ERR "failed to register PPP device (%d)\n", err); | 868 | printk(KERN_ERR "failed to register PPP device (%d)\n", err); |
| 875 | return err; | 869 | return err; |
| 876 | 870 | ||
| 877 | out_class: | ||
| 878 | class_device_destroy(ppp_class, MKDEV(PPP_MAJOR,0)); | ||
| 879 | class_destroy(ppp_class); | ||
| 880 | out_chrdev: | 871 | out_chrdev: |
| 881 | unregister_chrdev(PPP_MAJOR, "ppp"); | 872 | unregister_chrdev(PPP_MAJOR, "ppp"); |
| 882 | goto out; | 873 | goto out; |
| @@ -2681,7 +2672,6 @@ static void __exit ppp_cleanup(void) | |||
| 2681 | cardmap_destroy(&all_ppp_units); | 2672 | cardmap_destroy(&all_ppp_units); |
| 2682 | if (unregister_chrdev(PPP_MAJOR, "ppp") != 0) | 2673 | if (unregister_chrdev(PPP_MAJOR, "ppp") != 0) |
| 2683 | printk(KERN_ERR "PPP: failed to unregister PPP device\n"); | 2674 | printk(KERN_ERR "PPP: failed to unregister PPP device\n"); |
| 2684 | devfs_remove("ppp"); | ||
| 2685 | class_device_destroy(ppp_class, MKDEV(PPP_MAJOR, 0)); | 2675 | class_device_destroy(ppp_class, MKDEV(PPP_MAJOR, 0)); |
| 2686 | class_destroy(ppp_class); | 2676 | class_destroy(ppp_class); |
| 2687 | } | 2677 | } |
